-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
96 lines (96 loc) · 2.95 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"version": "1.0.0",
"name": "react-ts-h5-template",
"private": false,
"license": "ISC",
"author": "swcbo",
"scripts": {
"dev": "vite --mode dev",
"pre": "vite --mode pre",
"prod": "vite --mode prod",
"build:dev": "vite build --mode dev",
"build:prod": "vite build --mode prod",
"build:pre": "vite build --mode pre",
"serve": "vite preview",
"precommit": "lint-staged",
"precommit-msg": "echo 'Pre-commit checks...' && exit 0",
"prettier": "prettier -c --write 'src/*'",
"lint": "npm run lint:style && npm run lint:prettier",
"lint:fix": "eslint --cache --ext .js,.jsx,.ts,.tsx --no-error-on-unmatched-pattern --quiet --fix ./src",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"lint:prettier": "prettier --check 'src/*' --end-of-line auto",
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx "
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{jsx,less,md,json}": [
"prettier --write"
],
"*.ts?(x)": [
"prettier --parser=typescript --write"
]
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
],
"dependencies": {
"antd-mobile": "^5.0.0-rc.19",
"axios": "^0.21.4",
"history": "^5.3.0",
"lib-flexible": "^0.3.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^6.0.2",
"react-transition-group": "^4.4.2",
"rmox": "^1.0.6"
},
"devDependencies": {
"@testing-library/react": "^12.1.0",
"@types/node": "^16.9.1",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/react-transition-group": "^4.4.2",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"@vitejs/plugin-legacy": "^4.0.2",
"@vitejs/plugin-react-swc": "^3.2.0",
"autoprefixer": "^10.4.2",
"consola": "^2.15.3",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-standard": "^5.0.0",
"less": "^4.1.2",
"less-vars-to-js": "^1.3.0",
"lint-staged": "^11.1.2",
"postcss": "^8.4.5",
"postcss-pxtorem": "^6.0.0",
"prettier": "^2.4.0",
"rollup-plugin-visualizer": "^5.5.2",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^22.0.0",
"tailwindcss": "^3.0.15",
"terser": "^5.16.8",
"typescript": "^4.3.2",
"vite": "^4.2.1",
"vite-plugin-compression2": "^0.8.2",
"vite-plugin-style-import": "^2.0.0",
"vite-plugin-windicss": "^1.8.10"
}
}