-
Notifications
You must be signed in to change notification settings - Fork 100
/
package.json
50 lines (50 loc) · 1.57 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
{
"name": "cloudbase-cms",
"version": "2.13.19",
"private": true,
"scripts": {
"dev": "lerna run dev --stream",
"build": "lerna run build --stream",
"build:wx": "cross-env WX_MP=true lerna run build --stream",
"build:server": "cross-env SERVER_MODE=true lerna run build --stream",
"setup": "lerna bootstrap",
"prettier": "prettier -c --write \"**/*.{ts,tsx,js,jsx,json}\"",
"lint-staged": "lint-staged",
"lint-staged:ts": "eslint --ext .ts,.tsx",
"lint:fix": "eslint --fix --cache --ext .ts,.tsx --format=pretty ./packages",
"lint:prettier": "prettier --check \"**/*.{ts,tsx,js,jsx,json}\" --end-of-line auto",
"deploy": "tcb framework deploy",
"preext:zip": "rm -rf build && mkdir build && yarn run build",
"preext:zip-wx": "rm -rf build && mkdir build && yarn run build:wx",
"ext:zip": "bash ./scripts/zip.sh",
"ext:zip-wx": "bash ./scripts/zip.sh"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged"
}
},
"lint-staged": {
"**/*.{ts,tsx}": "npm run lint-staged:ts",
"**/*.{tsx,ts,less,md,json}": [
"prettier --write"
]
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "~3.7.0",
"@typescript-eslint/parser": "~3.7.0",
"cross-env": "^7.0.2",
"eslint": "~7.5.0",
"eslint-config-alloy": "~3.7.4",
"eslint-formatter-pretty": "~4.0.0",
"eslint-plugin-react": "~7.20.3",
"husky": "^4.2.5",
"lerna": "^4.0.0",
"lint-staged": "^10.2.11",
"prettier": "^2.0.5",
"typescript": "^3.9.7"
},
"engines": {
"node": ">=10.0.0"
}
}