-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
58 lines (58 loc) · 1.84 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
58
{
"name": "miniprogram-template",
"version": "1.0.0",
"description": "🎉 A magical miniprogram template",
"repository": {
"type": "git",
"url": "git+https://github.com/zhihuifanqiechaodan/miniprogram-template.git"
},
"author": "只会番茄炒蛋 <673395239@qq.com>",
"license": "ISC",
"bugs": {
"url": "https://github.com/zhihuifanqiechaodan/miniprogram-template/issues"
},
"homepage": "https://github.com/zhihuifanqiechaodan/miniprogram-template#readme",
"main": "",
"scripts": {
"build:dev": "cross-env NODE_ENV=development run-s switch-env miniprogram-ci",
"build:dev02": "cross-env NODE_ENV=development02 run-s switch-env miniprogram-ci",
"build:test": "cross-env NODE_ENV=test run-s switch-env miniprogram-ci",
"build:test02": "cross-env NODE_ENV=test02 run-s switch-env miniprogram-ci",
"build:pre": "cross-env NODE_ENV=preview run-s switch-env miniprogram-ci",
"build:prod": "cross-env NODE_ENV=production run-s switch-env miniprogram-ci",
"prepare": "husky install && npx husky add .husky/pre-commit 'npx lint-staged'",
"prettier": "prettier --write",
"prettier-lint": "prettier --write .",
"eslint": "eslint --ext .ts,.js",
"eslint-lint": "eslint --ext .ts,.js .",
"switch-env": "node switch-env.js",
"miniprogram-ci": "node miniprogram-ci.js"
},
"dependencies": {
"@vant/weapp": "^1.10.23",
"dayjs": "^1.11.9"
},
"devDependencies": {
"cross-env": "^7.0.3",
"eslint": "^8.47.0",
"husky": "^8.0.3",
"lint-staged": "^13.3.0",
"miniprogram-ci": "^1.9.8",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"npm run eslint"
],
"*.{js,wxs,wxml,wxss,json,scss}": [
"npm run prettier"
]
},
"type": "module"
}