mirror of
https://github.com/wassname/side-by-side.git
synced 2026-10-28 13:30:52 +08:00
Less repetition in grunt file
This commit is contained in:
1 parent
42dbd84a12
commit
68d59f816b
2 files changed
+5
-8
No files matched your search
+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