Created
April 26, 2013 18:01
-
-
Save leon/5469124 to your computer and use it in GitHub Desktop.
grunt-hub multi-module play app configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global module:false*/ | |
module.exports = function (grunt) { | |
'use strict'; | |
grunt.loadNpmTasks('grunt-hub'); | |
grunt.initConfig({ | |
hub: { | |
all: { | |
files: { | |
src: [ | |
'../../common/app/assets/Gruntfile.js', | |
'../../website/app/assets/Gruntfile.js', | |
'../../admin/app/assets/Gruntfile.js' | |
] | |
}, | |
tasks: ['dist'] | |
} | |
}, | |
watch: { | |
all: { | |
files: [ | |
'../../common/app/assets/Gruntfile.js', | |
'../../website/app/assets/Gruntfile.js', | |
'../../admin/app/assets/Gruntfile.js' | |
] | |
} | |
} | |
}); | |
grunt.registerTask('run', ['watch']); | |
grunt.registerTask('dist', ['hub']); | |
grunt.registerTask('default', ['hub']); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "myapp", | |
"version": "0.0.0", | |
"dependencies": {}, | |
"devDependencies": { | |
"grunt": "0.4.x", | |
"grunt-hub": "0.4.x" | |
}, | |
"engines": { | |
"node": ">=0.8.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment