-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
78 lines (78 loc) · 2.74 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
71
72
73
74
75
76
77
78
{
"private": true,
"scripts": {
"start": "cross-env UMI_ENV=DEV umi dev",
"start:standalone": "cross-env UMI_ENV=DEV STANDALONE=1 umi dev",
"build": "cross-env GIT_VERSION=$(git rev-parse --short HEAD) JS_DELIVER_HOST=https://jsdelivr.2heng.xin/gh/moezx/v2bu@ umi build ",
"build:standalone": "cross-env STANDALONE=1 GIT_VERSION=$(git rev-parse --short HEAD) JS_DELIVER_HOST=https://jsdelivr.2heng.xin/gh/moezx/v2bu@ umi build",
"postbuild:standalone": "cpx env.example.js dist && rimraf dist/assets",
"postbuild": "rimraf dist/assets",
"build:analyze": "cross-env ANALYZE=1 umi build",
"postinstall": "umi g tmp",
"prettier": "prettier -c --write \"src/**/*\"",
"lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
"lint-staged": "eslint --ext .js,.jsx,.ts,.tsx ",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:prettier": "prettier -c --write \"src/**/*\" --end-of-line auto",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"test": "umi-test",
"test:coverage": "umi-test --coverage",
"prepare": "husky install"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"**/*.less": "stylelint --syntax less",
"*.{js,jsx,less,md,json}": [
"prettier --write"
],
"*.ts?(x)": [
"prettier --parser=typescript --write"
],
"*.js": "eslint --cache --fix",
"*.{js,css,md}": "prettier --write"
},
"dependencies": {
"@ant-design/icons": "^4.6.2",
"@ant-design/pro-layout": "^6.5.0",
"@ephox/sand": "^5.0.3",
"ahooks": "^2.10.9",
"antd": "^4.0.0",
"bytes-formatter": "^21.6.11",
"classnames": "^2.3.1",
"markdown-it": "^12.2.0",
"moment": "^2.29.1",
"qrcode.react": "^1.0.1",
"react": "17.x",
"react-darkreader": "npm:@moezx/[email protected]",
"react-dom": "17.x",
"reaptcha": "^1.7.2",
"umi": "^3.5.13"
},
"devDependencies": {
"@types/express": "^4.17.13",
"@types/markdown-it": "^12.2.1",
"@types/qrcode.react": "^1.0.2",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@umijs/plugin-esbuild": "^1.3.1",
"@umijs/preset-react": "1.x",
"@umijs/preset-ui": "^2.2.9",
"@umijs/test": "^3.5.13",
"cpx": "^1.5.0",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"express": "^4.17.1",
"husky": "^7.0.1",
"lint-staged": "^10.0.7",
"prettier": "^2.2.0",
"react-dev-inspector": "^1.6.0",
"rimraf": "^3.0.2",
"stylelint": "^13.13.1",
"typescript": "^4.1.2",
"yorkie": "^2.0.0"
}
}