-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
57 lines (57 loc) · 2.08 KB
/
package.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
49
50
51
52
53
54
55
56
57
{
"name": "@web/root",
"version": "0.1.0",
"description": "New Web",
"author": "Timo Yan",
"private": true,
"workspaces": [
"src/packages/*",
"src/packages/app/packages/*"
],
"scripts": {
"ci": "rm -rf node_modules && yarn install --ignore-scripts && npx lerna link && yarn husky-trigger",
"husky-trigger": "node node_modules/husky/lib/installer/bin install",
"lint": "npx eslint '*/**/*.{js,ts,tsx,json}' --quiet --no-error-on-unmatched-pattern",
"lint-fix": "yarn lint --fix",
"app-dev": "rm -rf app-dist && cd src/packages/app && yarn dev",
"app-build": "rm -rf app-dist && cd src/packages/app && yarn build",
"app-start": "rm -rf app-dist && cd src/packages/app && yarn start",
"app-analyze": "rm -rf app-dist && cd src/packages/app && yarn analyze",
"server-dev": "rm -rf server-dist && cd src/packages/server && yarn dev",
"server-build": "rm -rf server-dist && cd src/packages/server && yarn build",
"server-start": "rm -rf server-dist && cd src/packages/server && yarn start",
"build": "yarn app-build && yarn server-build"
},
"husky": {
"hooks": {
"pre-commit": "npx lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx,md,html,css,json}": [
"npx prettier --write"
],
"*.{js,ts,tsx,json}": [
"yarn lint"
]
},
"devDependencies": {
"@types/node": "14.10.1",
"@types/webpack": "^4.41.22",
"@typescript-eslint/eslint-plugin": "^4.1.0",
"@typescript-eslint/parser": "^4.1.0",
"eslint": "^7.9.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.2",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"husky": "3.1.0",
"lerna": "^3.22.1",
"lint-staged": "^10.3.0",
"prettier": "^2.1.1",
"typescript": "^4.0.2",
"cross-env": "7.0.2",
"ts-node": "^9.0.0"
}
}