-
Notifications
You must be signed in to change notification settings - Fork 60
/
package.json
40 lines (40 loc) 路 1.13 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
{
"name": "genesis",
"private": true,
"devDependencies": {
"concurrently": "8.2.1",
"lerna": "^7.2.0",
"zx": "^7.2.3"
},
"workspaces": [
"packages/*",
"examples/*"
],
"scripts": {
"release": "./script/publish.sh",
"build": "zx script/index.js --examples build",
"start": "zx script/index.js --examples start",
"dev": "zx script/index.js --examples dev",
"type-check": "zx script/index.js --examples type-check",
"build:packages": "zx script/index.js --packages build",
"lint": "npm run lint:js && npm run lint:css",
"lint:js": "genesis-eslint . --ext .js,.ts,.vue --fix",
"lint:css": "genesis-stylelint **/*.{css,less,vue} --fix --allow-empty-input",
"postinstall": "./script/post-install.sh"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js}": [
"eslint --ext .js,.ts --fix",
"git add"
],
"*.{vue}": [
"eslint --ext .js,.ts --fix",
"git add"
]
}
}