forked from vlocityinc/vlocity_build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
25 lines (20 loc) · 816 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
'use strict';
var vlocitycli = require('./lib/vlocitycli.js');
module.exports = function(grunt) {
grunt.log.oklns("Vlocity Build Tools");
Object.keys(VLOCITY_COMMANDLINE_COMMANDS).forEach(function(task) {
grunt.registerTask(task, VLOCITY_COMMANDLINE_COMMANDS[task].description, function() {
var done = this.async();
new vlocitycli().runCLI([task], function(result) {
grunt.log.ok(result);
done();
}, function(result) {
grunt.fatal(result);
done();
});
});
});
grunt.registerTask('default', 'There is no Default task defined for this Project', function() {
console.log('Use', '\x1b[32m', 'grunt --help', '\x1b[0m', 'to see a full list of commands');
});
};