Merge branch 'master' of github.com:stevenvachon/pure into stevenvachon-master

Conflicts:
	bower.json
This commit is contained in:
Eric Ferraiuolo 2014-02-06 23:42:54 -05:00
commit 1f9ec2a22d
3 changed files with 26 additions and 7 deletions

View File

@ -9,6 +9,14 @@ grunt.initConfig({
pkg : grunt.file.readJSON('package.json'), pkg : grunt.file.readJSON('package.json'),
bower: grunt.file.readJSON('bower.json'), bower: grunt.file.readJSON('bower.json'),
// -- bower.json Config ---------------------------------------------------------
bower_json: {
release: {
main: 'pure.css'
}
},
// -- Clean Config --------------------------------------------------------- // -- Clean Config ---------------------------------------------------------
clean: { clean: {
@ -25,6 +33,10 @@ grunt.initConfig({
dest : 'build/', dest : 'build/',
expand : true, expand : true,
flatten: true flatten: true
},
release: {
src : '{LICENSE.md,README.md,HISTORY.md}',
dest : 'build/'
} }
}, },
@ -135,12 +147,8 @@ grunt.initConfig({
expand : true, expand : true,
flatten: true, flatten: true,
dest : '<%= pkg.name %>/<%= pkg.version %>/', src : 'build/*',
dest : '<%= pkg.name %>/<%= pkg.version %>/'
src: [
'{bower.json,LICENSE.md,README.md,HISTORY.md}',
'build/*.css'
]
} }
}, },
@ -249,6 +257,8 @@ grunt.registerTask('watch', ['default', 'observe']);
grunt.registerTask('release', [ grunt.registerTask('release', [
'default', 'default',
'clean:release', 'clean:release',
'copy:release',
'bower_json',
'compress:release' 'compress:release'
]); ]);

View File

@ -1,6 +1,7 @@
{ {
"name": "pure", "name": "pure",
"version": "0.4.2-pre", "version": "0.4.2-pre",
"main": "build/pure.css",
"devDependencies": { "devDependencies": {
"normalize-css": "1.1.3" "normalize-css": "1.1.3"
} }

8
tasks/bower_json.js Normal file
View 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,' '));
});
};