diff --git a/Gruntfile.js b/Gruntfile.js index 878756d..1b9e0a3 100644 --- a/Gruntfile.js +++ b/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'], diff --git a/bower.json b/bower.json index de5835b..1318e51 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,7 @@ { "name": "pure", "version": "0.3.1-pre", + "main": "build/pure.css", "devDependencies": { "normalize-css": "1.1.3" } diff --git a/tasks/bower_json.js b/tasks/bower_json.js index 57e2ddc..b341826 100644 --- a/tasks/bower_json.js +++ b/tasks/bower_json.js @@ -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,' ')); }); };