-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
52 lines (52 loc) · 1.38 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
{
"name": "quickapp-typescript-template",
"version": "1.0.0",
"description": "基于 TypeScript 编写「快应用」模版。",
"scripts": {
"start": "hap server --watch",
"build": "hap build",
"release": "hap release",
"server": "hap server",
"watch": "hap watch",
"lint": "eslint --format codeframe --fix --ext .ux,.js src/",
"precommit-msg": "echo '🚧 start pre-commit checks...' && exit 0",
"prettier": "node ./scripts/selfCloseInputTag.js && prettier --write \"src/**/*.{js,ux,qxml}\"",
"watcher": "onchange '**/*.md' \"src/**/**/*.{js,ux,less,scss,css}\" -- prettier --write {{changed}}"
},
"devDependencies": {
"@babel/preset-typescript": "^7.10.4",
"babel-eslint": "^10.0.1",
"eslint": "^6.8.0",
"hap-toolkit": "^0.7.5",
"husky": "^4.2.5",
"less": "^3.12.2",
"less-loader": "^6.2.0",
"lint-staged": "^10.2.11",
"onchange": "^7.0.2",
"prettier-plugin-ux": "^0.3.0",
"typescript": "^3.9.6"
},
"husky": {
"hooks": {
"pre-commit": "yarn run precommit-msg && lint-staged"
}
},
"lint-staged": {
"**/**.{ux,js,json,pcss,md,vue,less,scss}": [
"prettier --write",
"git add"
]
},
"prettier": {
"singleQuote": true,
"semi": false,
"printWidth": 120,
"proseWrap": "never"
},
"engines": {
"node": ">=8.10"
},
"browserslist": [
"chrome 65"
]
}