-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage-scripts.js
40 lines (39 loc) · 1018 Bytes
/
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
const { concurrent, series } = require('nps-utils')
module.exports = {
scripts: {
default: 'nps start',
start: concurrent({
FE: {
script: 'cd counter-ui && nps ',
color: 'blue.bold',
},
BE: {
script: 'cd counter-service && nps ',
color: 'green.bold',
},
}),
setup: {
default: concurrent({
FE: {
script: 'nps setup.FE',
color: 'blue.bold',
},
BE: {
script: 'nps setup.BE',
color: 'green.bold',
},
}),
FE: {
default: series.nps('setup.FE.npm', 'setup.FE.env'),
npm:'cd counter-ui && npm i -D',
env: 'cd counter-ui && cp .env.example .env.development',
},
BE: {
default: series.nps('setup.BE.npm', 'setup.BE.env'),
npm:'cd counter-service && npm i -D',
env: 'cd counter-service && cp .env.example .env.development',
},
},
test: 'echo "Error: no test specified" && exit 1',
}
};