add “main” to bower.json

This commit is contained in:
Steven Vachon 2014-02-05 12:52:39 -05:00
parent 49f78812dc
commit 1e0f0b5efe
2 changed files with 16 additions and 6 deletions

View File

@ -25,6 +25,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 +139,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 +249,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'
]); ]);

8
tasks/bower_json.js Normal file
View File

@ -0,0 +1,8 @@
'use strict';
module.exports = function (grunt) {
grunt.registerTask('bower_json', 'Modifies bower.json "main".', function () {
grunt.config('bower.main', 'pure.css');
grunt.file.write('build/bower.json', JSON.stringify(grunt.config('bower'),null,' '));
});
};