-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
122 lines (122 loc) · 3.79 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "vite-react-ts",
"version": "0.0.0",
"description": "A Vite2 + Typescript + React + Antd + Scss + Eslint + Prettier template",
"homepage": "https://github.com/lotosv2010/vite-react-ts",
"repository": {
"type": "git",
"url": "[email protected]:lotosv2010/vite-react-ts.git"
},
"keywords": [
"vite",
"typescript",
"react",
"antd",
"scss",
"eslint",
"prettier"
],
"author": {
"name": "Robin",
"email": "[email protected]",
"github": "https://github.com/lotosv2010"
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build:test": "vite build --mode test",
"build:staging": "vite build --mode staging",
"preview": "vite preview",
"test": "npm run test:unit && npm run test:e2e-run",
"test:unit": "jest --colors --passWithNoTests",
"test:watch": "jest --watchAll",
"test:coverage": "jest --coverage",
"test:e2e": "cypress open",
"test:e2e-run": "cypress run",
"lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:prettier": "prettier --check \"src/**/*\" --end-of-line auto",
"lint:style": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
"prepare": "husky install"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.scss": "npm run lint:style",
"*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
"*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write"
]
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@types/nprogress": "^0.2.0",
"antd": "^4.19.0",
"axios": "^0.26.0",
"i18next": "^21.6.13",
"i18next-browser-languagedetector": "^6.1.3",
"i18next-http-backend": "^1.3.2",
"lodash": "^4.17.21",
"mobx": "^6.4.2",
"mobx-react": "^7.3.0",
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^11.15.6",
"react-router-dom": "^6.2.2"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.3",
"@types/jest": "^27.4.1",
"@types/lodash": "^4.14.179",
"@types/node": "^17.0.21",
"@types/react": "^17.0.33",
"@types/react-dom": "^17.0.10",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"@vitejs/plugin-legacy": "^1.7.1",
"@vitejs/plugin-react": "^1.0.7",
"cypress": "^9.5.1",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.4.0",
"eslint-define-config": "^1.16.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.2",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"husky": ">=7",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.5.1",
"less": "^4.1.2",
"lint-staged": "^12.3.4",
"path": "^0.12.7",
"postcss": "^8.4.12",
"postcss-html": "^1.3.0",
"postcss-scss": "^4.0.3",
"prettier": "^2.5.1",
"rollup": "^2.70.2",
"rollup-plugin-visualizer": "^5.6.0",
"sass": "^1.49.9",
"stylelint": "^14.5.3",
"stylelint-config-html": "^1.0.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^25.0.0",
"stylelint-order": "^5.0.0",
"stylelint-scss": "^4.1.0",
"ts-jest": "^27.1.3",
"typescript": "^4.4.4",
"vite": "^2.7.2",
"vite-plugin-checker": "^0.4.2",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-html": "^3.1.0",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-style-import": "^2.0.0"
}
}