mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 06:58:14 -05:00
23 lines
583 B
CoffeeScript
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']
|