-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-script.json
48 lines (48 loc) · 1.2 KB
/
build-script.json
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
{
"alias": {
"build-ts": "tsc -p src",
"watch-ts": "tsc -w -p src",
"cleanup-lib": "rimraf lib",
"yarn-publish": "yarn publish --ignore-scripts --registry https://registry.npmjs.org --access=public",
"upgrade-node-modules": "npm-check-updates --update --packageFile ./package.json",
"run-test": "",
"git-clean": "git clean -f -d -X -e !node_modules -e !node_modules/** -e !.idea -e !.idea/** -e !.vscode -e !.vscode/**"
},
"command": {
"build": {
"title": "Build project",
"run": ["build-ts"]
},
"distclean": {
"title": "Delete git ignore files (without node_modules)",
"run": ["git-clean"]
},
"clean": {
"title": "Delete lib folder",
"run": ["cleanup-lib"]
},
"rebuild": {
"title": "Prepare for publish package",
"run": ["@build"],
"after": ["distclean"]
},
"publish": {
"title": "Publish package (do same thing with npm publish)",
"run": ["yarn-publish"],
"after": ["rebuild"]
},
"test": {
"title": "Run test",
"run": ["run-test"],
"after": ["build"]
},
"upgrade": {
"title": "Do project dependency upgrade",
"run": ["upgrade-node-modules"]
},
"watch": {
"title": "Watch mode build project",
"run": ["watch-ts"]
}
}
}