This repository was archived by the owner on Apr 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-scripts.js
More file actions
53 lines (45 loc) · 1.33 KB
/
Copy pathpackage-scripts.js
File metadata and controls
53 lines (45 loc) · 1.33 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
const { series, concurrent } = require('nps-utils');
const env = require('@frontendmonster/dev-utils/env');
module.exports.scripts = {
clean: {
default: 'lerna run clean',
core: 'lerna run clean --scope @merns/*',
libs: 'lerna run clean --scope @fem/*',
},
lint: {
default: 'lerna run lint',
core: 'lerna run lint --scope @merns/*',
libs: 'lerna run lint --scope @fem/*',
fix: 'lerna run lint -- --fix',
},
fix: {
core: 'lerna run lint --scope @merns/* -- --fix',
libs: 'lerna run lint --scope @fem/* -- --fix',
},
build: {
default: 'lerna run build',
core: 'lerna run build --scope @merns/*',
libs: 'lerna run build --scope @fem/*',
},
watch: {
default: 'lerna run build:watch --parallel',
core: 'lerna run build:watch --parallel --scope @merns/*',
libs: 'lerna run build:watch --parallel --scope @fem/*',
},
dev: concurrent({
api: {
script: `${env.set(env.dev)} gulp dev`,
color: 'black.bold',
},
web: {
script: `${env.set(env.dev)} yarn workspace @merns/web run dev`,
color: 'black.bold',
},
ctrl: {
script: `${env.set(env.dev)} yarn workspace @merns/controller run build:watch`,
color: 'black.bold',
},
}),
test: 'lerna run test',
check: series('nps clean', 'nps build', 'nps test', 'yarn lint'),
};