mirror of
https://github.com/pure-css/pure.git
synced 2024-11-07 21:34:24 +00:00
added config
This commit is contained in:
parent
1e0f0b5efe
commit
2d31f31806
10
Gruntfile.js
10
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'],
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "pure",
|
||||
"version": "0.3.1-pre",
|
||||
"main": "build/pure.css",
|
||||
"devDependencies": {
|
||||
"normalize-css": "1.1.3"
|
||||
}
|
||||
|
@ -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,' '));
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user