-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathconstants.js
54 lines (50 loc) · 1.61 KB
/
constants.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const release_targets = {
production: {
repo : '[email protected]:binary-static-deployed/binary-static.git',
CNAME: 'www.binary.com',
},
staging: {
repo : '[email protected]:binary-com/binary-static.git',
CNAME: 'staging.binary.com',
},
};
/**
* branch : the required branch that should be checked out when releasing
* target_folder : the folder name in gh-pages to release to
* origin : the required origin that local clone should point to (also the target repo to release to, when `target_repo` not available)
* target_repo : the target repo to release to
* CNAME : creates a CNAME file based on this entry to push alongside the release when needed
*/
const release_config = {
production: {
branch : 'master',
target_folder: '',
origin : release_targets.production.repo,
CNAME : release_targets.production.CNAME,
},
staging: {
branch : 'master',
target_folder: '',
origin : release_targets.staging.repo,
CNAME : release_targets.staging.CNAME,
},
translations: {
branch : 'master',
target_folder: 'translations',
origin : release_targets.staging.repo,
CNAME : release_targets.staging.CNAME,
},
};
const node_modules_paths = {
binary_style: 'node_modules/@binary-com/binary-style',
quill : 'node_modules/@deriv-com/quill-ui',
};
const config = {
branch_prefix: 'br_',
section : 'app',
};
module.exports = {
release_config,
node_modules_paths,
config,
};