This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
70 lines (70 loc) · 2.94 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
59
60
61
62
63
64
65
66
67
68
69
70
{
"name": "miniprogram-template",
"version": "1.2.0",
"description": "Weachat MiniProgram Template Projects",
"repository": {
"type": "git",
"url": "https://github.com/NewFuture/miniprogram-template.git"
},
"license": "MIT",
"author": "NewFuture <github@newfuture.cc>",
"main": "dist/app.js",
"scripts": {
"start": "mp",
"start:test": "mp -c env/test.jsonc",
"start:prod": "mp -c env/prod.jsonc",
"fix": "npm run prettier-fix && npm run lint-fix",
"preupload": "npm run build",
"upload": "mp upload",
"preupload:test": "npm run build:test",
"upload:test": "mp upload -c env/test.jsonc",
"preupload:prod": "npm run build:prod",
"upload:prod": "mp upload -c env/prod.jsonc",
"build": "mp build",
"build:test": "mp build -c env/test.jsonc --production",
"build:prod": "mp build -c env/prod.jsonc --production",
"check": "npm run prettier && npm run lint",
"clean": "mp clean",
"help": "mp -h",
"lint": "npm run lint:js && npm run lint:wxss && npm run lint:wxml && npm run lint:config",
"lint-fix": "npm run fix:wxss && npm run fix:js && npm run fix:config",
"fix:config": "prettier *.json *.jsonc .*rc \"env/*\" \".vscode/*\" --write",
"fix:js": "eslint *.js \"src/**/*.{ts,js,wxs,wxts}\" --fix",
"fix:wxss": "stylelint \"src/**/*\" --fix",
"lint:config": "prettier *.json *.jsonc .*rc \"env/*\" \".vscode/*\" --check",
"lint:js": "eslint *.js \"src/**/*.{ts,js,wxs,wxts}\"",
"lint:wxml": "htmlhint \"src/**/*.{wxml,html}\"",
"lint:wxss": "stylelint \"src/**/*\"",
"prettier": "prettier src --check",
"prettier-fix": "prettier src --write",
"eslint-check": "eslint --print-config src/app.ts | eslint-config-prettier-check",
"stylelint-check": "stylelint-config-prettier-check",
"pretest": "npm run stylelint-check && npm run eslint-check",
"test": "npm run build && npm run check",
"postversion": "git push --follow-tags",
"postinstall": "node postinstall.js"
},
"dependencies": {
"tslib": "^2.0.1"
},
"devDependencies": {
"@types/miniprogram-wxs": "^2.6.2",
"@types/wechat-miniprogram": "^3.4.0",
"@typescript-eslint/eslint-plugin": "^4.1.0",
"@typescript-eslint/parser": "^4.1.0",
"eslint": "^7.9.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"htmlhint": "^0.14.1",
"miniprogram-build": "^7.0.3",
"prettier": "^2.1.1",
"stylelint": "^13.7.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-recommended-scss": "^4.2.0",
"stylelint-order": "^4.1.0",
"stylelint-prettier": "^1.1.2",
"stylelint-scss": "^3.18.0",
"typescript": "^4.4.3"
}
}