mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-09 11:34:24 +08:00
Less repetition in grunt file
This commit is contained in:
+3
-7
@@ -1,3 +1,5 @@
|
||||
_ = require('lodash');
|
||||
|
||||
module.exports = (grunt) ->
|
||||
vars = {
|
||||
scripts: [
|
||||
@@ -106,13 +108,7 @@ module.exports = (grunt) ->
|
||||
dest: 'build-min'
|
||||
ext: '.html'
|
||||
options: {
|
||||
data: {
|
||||
scripts: vars.scripts
|
||||
styles: vars.styles
|
||||
test_scripts: vars.test_scripts
|
||||
test_styles: vars.test_styles
|
||||
min: true
|
||||
}
|
||||
data: _.extend {}, vars, { min: true }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -15,7 +15,8 @@
|
||||
"grunt-contrib-qunit": "0.5.x",
|
||||
"grunt-contrib-stylus": "0.20.x",
|
||||
"grunt-contrib-uglify": "0.6.x",
|
||||
"grunt-contrib-watch": "0.6.x"
|
||||
"grunt-contrib-watch": "0.6.x",
|
||||
"lodash": "2.4.x"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node_modules/.bin/grunt test",
|
||||
|
||||
Reference in New Issue
Block a user