ZeroOmega/omega-build/Gruntfile.coffee

23 lines
583 B
CoffeeScript
Raw Normal View History

2014-09-20 11:49:04 -04:00
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']