forked from binary-com/binary-static
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGruntfile.js
More file actions
35 lines (28 loc) · 1.08 KB
/
Gruntfile.js
File metadata and controls
35 lines (28 loc) · 1.08 KB
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
35
module.exports = function (grunt) {
global.repos = {
staging: {
origin: 'git@github.com:binary-com/binary-static.git',
CNAME : 'staging.binary.com'
},
production: {
origin: 'git@github.com:binary-static-deployed/binary-static.git',
CNAME : 'www.binary.com'
}
};
global.branch_prefix = 'br_';
global.branch = grunt.option('branch');
global.dist = 'dist' + (global.branch ? '/' + global.branch_prefix + global.branch : '');
global.path = grunt.option('path');
global.compileCommand = function(params) {
return 'cd ' + process.cwd() + '/scripts && carton exec perl compile.pl ' + params + (global.branch ? ' -b ' + global.branch : '') + (global.path ? ' -p ' + global.path : '') + ' && cd ..';
};
require('time-grunt')(grunt);
require('load-grunt-config')(grunt, {
configPath: process.cwd() + '/build',
loadGruntTasks: {
pattern: 'grunt-*',
config: require('./package.json'),
scope: 'devDependencies'
}
});
};