forked from deriv-com/smarttrader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
22 lines (19 loc) · 732 Bytes
/
Gruntfile.js
File metadata and controls
22 lines (19 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const { initGlobals } = require('./build/config/init');
module.exports = function (grunt) {
initGlobals(grunt);
require('time-grunt')(grunt);
require('load-grunt-config')(grunt, {
configPath: process.cwd() + '/build',
loadGruntTasks: {
pattern: 'grunt-*',
scope : 'devDependencies',
config : require('./package.json'),
},
postProcess: function(config) {
// release to translations automatically after releasing to staging, since staging release is always with 'cleanup'
if (global.release_target === 'staging') {
config.aliases.release.push('shell:release_translations');
}
},
});
};