-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
34 lines (30 loc) · 1 KB
/
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
26
27
28
29
30
31
32
33
34
module.exports = function (grunt) {
grunt.registerAlias = function(name, tasks) {
grunt.registerTask(name, function(target) {
var suffix = !!target ? ':' + target : '';
grunt.task.run.apply(grunt.task, tasks.map(function(task) {
return task + suffix;
}));
});
};
grunt.addCmd = function addCmd(name, command) {
grunt.config.set('shell.' + name, {
command: command,
options: {
execOptions: {
maxBuffer: 1024 * 1024 * 1024 // gB
},
failOnError: true,
stderr: true,
stdout: true
}
});
};
grunt.loadNpmTasks('grunt-shell');
require('./grunt_tasks/buildDart')(grunt);
require('./grunt_tasks/buildAngular')(grunt);
require('./grunt_tasks/dart2js')(grunt);
require('./grunt_tasks/testApp')(grunt);
require('./grunt_tasks/updateReport')(grunt);
require('./grunt_tasks/collate')(grunt);
}