-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaizong.config.js
37 lines (32 loc) · 896 Bytes
/
daizong.config.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
export default {
// Starts development mode: watches and compiles all source files including tests.
dev: {
run: ['#clean', 'tsc -b tests -w'],
envGroups: ['development'],
},
// Cleans, lints, compiles sources and runs tests.
build: {
run: ['#clean', 'tsc -b tests', '#lint', '#t'],
envGroups: ['production'],
},
// Deletes compiled files, auto triggered by `#dev` or `#build`.
clean: {
run: {
del: ['dist', 'dist_tests'],
},
},
// Lints the project using ESLint, auto triggered by `#build`.
lint: 'eslint --max-warnings 0 --ext .ts src/ tests/',
// Runs tests when you already have `#dev` running.
t: 'mocha --require source-map-support/register dist_tests/**/*.test.js',
_: {
envGroups: {
production: {
NODE_ENV: 'production',
},
development: {
NODE_ENV: 'development',
},
},
},
};