Skip to content

Instantly share code, notes, and snippets.

@leon
Created April 26, 2013 18:01
Show Gist options
  • Save leon/5469124 to your computer and use it in GitHub Desktop.
Save leon/5469124 to your computer and use it in GitHub Desktop.
grunt-hub multi-module play app configuration
/*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']);
};
{
"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