mirror of
https://github.com/pure-css/pure.git
synced 2024-11-07 21:34:24 +00:00
Merge branch 'master' of github.com:stevenvachon/pure into stevenvachon-master
Conflicts: bower.json
This commit is contained in:
commit
1f9ec2a22d
24
Gruntfile.js
24
Gruntfile.js
@ -9,8 +9,16 @@ grunt.initConfig({
|
||||
pkg : grunt.file.readJSON('package.json'),
|
||||
bower: grunt.file.readJSON('bower.json'),
|
||||
|
||||
// -- Clean Config ---------------------------------------------------------
|
||||
// -- bower.json Config ---------------------------------------------------------
|
||||
|
||||
bower_json: {
|
||||
release: {
|
||||
main: 'pure.css'
|
||||
}
|
||||
},
|
||||
|
||||
// -- Clean Config ---------------------------------------------------------
|
||||
|
||||
clean: {
|
||||
build : ['build/'],
|
||||
build_res: ['build/*-r.css'],
|
||||
@ -25,6 +33,10 @@ grunt.initConfig({
|
||||
dest : 'build/',
|
||||
expand : true,
|
||||
flatten: true
|
||||
},
|
||||
release: {
|
||||
src : '{LICENSE.md,README.md,HISTORY.md}',
|
||||
dest : 'build/'
|
||||
}
|
||||
},
|
||||
|
||||
@ -135,12 +147,8 @@ grunt.initConfig({
|
||||
|
||||
expand : true,
|
||||
flatten: true,
|
||||
dest : '<%= pkg.name %>/<%= pkg.version %>/',
|
||||
|
||||
src: [
|
||||
'{bower.json,LICENSE.md,README.md,HISTORY.md}',
|
||||
'build/*.css'
|
||||
]
|
||||
src : 'build/*',
|
||||
dest : '<%= pkg.name %>/<%= pkg.version %>/'
|
||||
}
|
||||
},
|
||||
|
||||
@ -249,6 +257,8 @@ grunt.registerTask('watch', ['default', 'observe']);
|
||||
grunt.registerTask('release', [
|
||||
'default',
|
||||
'clean:release',
|
||||
'copy:release',
|
||||
'bower_json',
|
||||
'compress:release'
|
||||
]);
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "pure",
|
||||
"version": "0.4.2-pre",
|
||||
"main": "build/pure.css",
|
||||
"devDependencies": {
|
||||
"normalize-css": "1.1.3"
|
||||
}
|
||||
|
8
tasks/bower_json.js
Normal file
8
tasks/bower_json.js
Normal file
@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (grunt) {
|
||||
grunt.registerMultiTask('bower_json', 'Modifies bower.json "main".', function () {
|
||||
grunt.config('bower.main', this.data.main);
|
||||
grunt.file.write('build/bower.json', JSON.stringify(grunt.config('bower'),null,' '));
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue
Block a user