mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-09 11:34:24 +08:00
Grunt add in the main space
This commit is contained in:
+13
-13
@@ -19,6 +19,19 @@ middleware = (connect, options) ->
|
||||
connect.static(options.base[0])
|
||||
]
|
||||
|
||||
add = (subtasks, defaults = {}) ->
|
||||
subtasks.map((item) -> [
|
||||
item[0]
|
||||
_.extend {
|
||||
expand: true
|
||||
cwd: 'source'
|
||||
dest: if /^min/.test(item[0]) then 'build-min' else 'build'
|
||||
}, defaults, item[1]
|
||||
]).reduce((params, param) ->
|
||||
params[param[0]] = param[1]
|
||||
params
|
||||
, {})
|
||||
|
||||
module.exports = (grunt) ->
|
||||
vars = {
|
||||
scripts: [
|
||||
@@ -149,19 +162,6 @@ module.exports = (grunt) ->
|
||||
}
|
||||
}
|
||||
|
||||
add = (subtasks, defaults = {}) ->
|
||||
subtasks.map((item) -> [
|
||||
item[0]
|
||||
_.extend {
|
||||
expand: true
|
||||
cwd: 'source'
|
||||
dest: if /^min/.test(item[0]) then 'build-min' else 'build'
|
||||
}, defaults, item[1]
|
||||
]).reduce((params, param) ->
|
||||
params[param[0]] = param[1]
|
||||
params
|
||||
, {})
|
||||
|
||||
grunt.config 'coffee', add([['main', {
|
||||
src: '**/*.coffee'
|
||||
ext: '.js'
|
||||
|
||||
Reference in New Issue
Block a user