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,8 +9,16 @@ 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'),
// -- Clean Config --------------------------------------------------------- // -- bower.json Config ---------------------------------------------------------
bower_json: {
release: {
main: 'pure.css'
}
},
// -- Clean Config ---------------------------------------------------------
clean: { clean: {
build : ['build/'], build : ['build/'],
build_res: ['build/*-r.css'], build_res: ['build/*-r.css'],

View File

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

View File

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