-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
82 lines (82 loc) · 2.57 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
79
80
81
82
{
"name": "dmhy-alt-ui",
"version": "1.0.0",
"private": false,
"description": "Yet Another DMHY Frontend Implementation",
"license": "MIT",
"scripts": {
"analyze": "cross-env ANALYZE=1 umi build",
"build": "umi build",
"postinstall": "umi g tmp",
"lint": "umi g tmp && yarn lint:js && yarn lint:prettier && yarn tsc",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && yarn 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",
"openapi": "umi openapi",
"playwright": "playwright install && playwright test",
"precommit": "lint-staged",
"prettier": "prettier -c --write \"src/**/*\"",
"serve": "umi-serve",
"start": "umi dev",
"test": "umi test",
"tsc": "tsc --noEmit"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write"
]
},
"gitHooks": {
"pre-commit": "npm run lint-staged",
"commit-msg": "fabric verify-commit"
},
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@ant-design/pro-form": "^1.68.2",
"@ant-design/pro-layout": "^6.5.0",
"@ant-design/pro-list": "^1.21.64",
"@umijs/ssr-darkreader": "^4.9.45",
"antd": "^4.20.6",
"copy-to-clipboard": "^3.3.1",
"jsdom": "^19.0.0",
"lodash": "^4.17.21",
"moment": "^2.29.3",
"opencc-js": "^1.0.3",
"react": "17.x",
"react-cookie-consent": "^7.4.1",
"react-dark-mode-toggle-2": "^2.0.2",
"react-dom": "17.x",
"umi": "^3.5.24"
},
"devDependencies": {
"@types/express": "^4.17.13",
"@types/jsdom": "^16.2.14",
"@types/lodash": "^4.14.182",
"@types/opencc-js": "^1.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"@umijs/fabric": "^2.10.0",
"@umijs/preset-react": "1.x",
"@umijs/test": "^3.5.24",
"cross-env": "^7.0.3",
"eslint": "^8.16.0",
"eslint-plugin-jest": "^26.2.2",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-unicorn": "^42.0.0",
"lint-staged": "^10.0.7",
"prettier": "^2.2.0",
"stylelint": "^14.8.5",
"typescript": "^4.1.2",
"yorkie": "^2.0.0"
}
}