added config

This commit is contained in:
Steven Vachon 2014-02-06 17:44:02 -05:00
parent 1e0f0b5efe
commit 2d31f31806
3 changed files with 12 additions and 3 deletions

View File

@ -9,6 +9,14 @@ grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
bower: grunt.file.readJSON('bower.json'),
// -- bower.json Config ---------------------------------------------------------
bower_json: {
release: {
main: 'pure.css'
}
},
// -- Clean Config ---------------------------------------------------------
clean: {

View File

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

View File

@ -1,8 +1,8 @@
'use strict';
module.exports = function (grunt) {
grunt.registerTask('bower_json', 'Modifies bower.json "main".', function () {
grunt.config('bower.main', 'pure.css');
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,' '));
});
};