forked from Sage-Bionetworks/BridgeJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
25 lines (23 loc) · 887 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
hub: {
options: {
concurrent: 4 // as many as there are projects.
},
all: {
src: ['shared/Gruntfile.js', 'neurod/Gruntfile.js', 'consent/Gruntfile.js', 'test/Gruntfile.js'],
tasks: ['test','build','default','release','watch','clean']
}
},
clean: ['node_modules']
});
grunt.loadNpmTasks('grunt-hub');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('test', ['hub:all:test']);
grunt.registerTask('build', ['hub:all:build']);
grunt.registerTask('default', ['hub:all:default']);
grunt.registerTask('release', ['hub:all:release', 'clean']);
grunt.registerTask('watch', ['hub:all:watch']);
grunt.registerTask('clean-all', ['hub:all:clean']);
};