forked from jamipraveeen/gateway-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage-scripts.js
50 lines (49 loc) · 1.8 KB
/
package-scripts.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
const {series, crossEnv, concurrent, rimraf} = require('nps-utils');
module.exports = {
scripts: {
build: {
before: rimraf('dist'),
cloud: {
production: {
default: series(
'nps build.before',
crossEnv('NODE_ENV=production webpack --progress -p --env.stage=production --env.target=cloud')
)
},
development: {
default: series(
'nps build.before',
crossEnv('NODE_ENV=production webpack --progress -p --env.stage=development --env.target=cloud')
)
}
},
gateway: {
production: {
default: series(
'nps build.before',
crossEnv('NODE_ENV=production webpack --progress -p --env.stage=production --env.target=gateway')
)
},
development: {
default: series(
'nps build.before',
crossEnv('NODE_ENV=development webpack --progress -p --env.stage=development --env.target=gateway')
)
}
}
},
debug: {
cloud: {
default: `webpack-dev-server -d --inline --env.server --env.stage=development --env.target=cloud`
},
gateway: {
default: `webpack-dev-server -d --inline --env.server --env.stage=development --env.target=gateway`
}
},
test: {
gateway: {
default: `webpack-dev-server -d --inline --env.server --env.stage=test --env.target=gateway`
}
}
}
};