ZeroOmega/omega-build/Gruntfile.coffee
2014-09-21 00:01:16 +08:00

23 lines
583 B
CoffeeScript

module.exports = (grunt) ->
submodules = ['omega-pac', 'omega-target', 'omega-web', 'omega-target-*']
hubConfig =
all:
options:
concurrent: Infinity
src: "../*/Gruntfile.*"
for module in submodules
hubConfig[module] =
src: "../#{module}/Gruntfile.*"
hubAll = (task) -> "hub:#{module}:#{task}" for module in submodules
grunt.initConfig {
hub: hubConfig
}
grunt.loadNpmTasks 'grunt-hub'
grunt.registerTask 'default', hubAll('default')
grunt.registerTask 'test', hubAll('test')
grunt.registerTask 'watch', ['hub:all:watch']