forked from YDJ-FE/ts-react-vite_or_webpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
169 lines (169 loc) · 5.8 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{
"name": "ts-react-webpack",
"version": "1.0.0",
"description": "an admin starter-template with typescript, react, mobx and webpack...",
"main": "index.js",
"scripts": {
"test": "jest",
"add": "add-component",
"lint-staged": "lint-staged",
"lint": "eslint src --ext .ts,.tsx && stylelint \"./src/**/*.scss\"",
"dev": "cross-env NODE_ENV=development APP_ENV=dev webpack-dev-server --config build/webpack.config.js",
"build": "cross-env NODE_ENV=production webpack --config build/webpack.config.js",
"build:qa": "cross-env APP_ENV=qa npm run build",
"build:prod": "cross-env APP_ENV=prod npm run build"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"keywords": [
"webpack",
"typescript",
"admin",
"react",
"mobx",
"starter-template"
],
"author": "jackple",
"license": "MIT",
"dependencies": {
"antd": "3.23.4",
"axios": "^0.19.0",
"bourbon": "6.0.0",
"eventemitter3": "4.0.0",
"lodash": "4.17.15",
"mobx": "5.13.1",
"mobx-react": "6.1.3",
"mobx-react-router": "^4.0.7",
"path-to-regexp": "3.1.0",
"react": "16.10.1",
"react-dom": "16.10.1",
"react-intl-universal": "2.1.4",
"react-json-view": "^1.19.1",
"react-loadable": "^5.5.0",
"react-router-dom": "5.1.1",
"react-virtualized": "^9.21.1",
"socket.io-client": "2.3.0",
"socketio-wildcard": "^2.0.0"
},
"devDependencies": {
"@babel/core": "7.6.2",
"@babel/plugin-proposal-class-properties": "7.5.5",
"@babel/plugin-proposal-decorators": "7.6.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "7.6.2",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "7.6.0",
"@commitlint/cli": "8.2.0",
"@commitlint/config-conventional": "8.2.0",
"@svgr/webpack": "4.3.3",
"@types/classnames": "^2.2.8",
"@types/enzyme": "^3.9.3",
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/jest": "24.0.18",
"@types/lodash": "4.14.141",
"@types/node": "12.7.8",
"@types/qs": "^6.5.3",
"@types/react": "16.9.3",
"@types/react-dom": "16.9.1",
"@types/react-loadable": "^5.5.1",
"@types/react-router-dom": "5.1.0",
"@types/react-virtualized": "9.21.4",
"@types/socket.io-client": "^1.4.32",
"@types/webpack-env": "^1.13.9",
"@typescript-eslint/eslint-plugin": "2.3.1",
"@typescript-eslint/parser": "2.3.1",
"add-asset-html-webpack-plugin": "^3.1.3",
"autoprefixer": "^9.6.0",
"babel-loader": "^8.0.6",
"babel-plugin-import": "1.12.2",
"cache-loader": "4.1.0",
"case-sensitive-paths-webpack-plugin": "^2.2.0",
"classnames": "^2.2.6",
"core-js": "3.2.1",
"cross-env": "6.0.0",
"css-loader": "3.2.0",
"customaddcomponents": "^1.0.35",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"enzyme-to-json": "3.4.0",
"eslint": "6.4.0",
"eslint-config-prettier": "6.3.0",
"eslint-plugin-prettier": "3.1.1",
"eslint-plugin-react": "^7.14.3",
"file-loader": "4.2.0",
"fs-extra": "^8.0.1",
"html-webpack-plugin": "^3.0.6",
"husky": "3.0.7",
"identity-obj-proxy": "^3.0.0",
"jest": "24.9.0",
"less": "3.10.3",
"less-loader": "^5.0.0",
"lint-staged": "9.4.0",
"mini-css-extract-plugin": "0.8.0",
"moment-locales-webpack-plugin": "1.1.0",
"node-sass": "^4.12.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"postcss-loader": "^3.0.0",
"prettier": "^1.17.1",
"raf": "^3.4.1",
"react-dev-utils": "9.0.4",
"sass-loader": "8.0.0",
"style-loader": "1.0.0",
"stylelint": "11.0.0",
"stylelint-config-prettier": "^6.0.0",
"stylelint-order": "^3.1.1",
"stylelint-prettier": "^1.1.1",
"terser-webpack-plugin": "2.1.2",
"thread-loader": "2.1.3",
"ts-jest": "24.1.0",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"typed-css-modules-webpack-plugin": "^0.1.2",
"typescript": "3.6.3",
"url-loader": "2.1.0",
"webpack": "4.41.0",
"webpack-bundle-analyzer": "3.5.2",
"webpack-cli": "3.3.9",
"webpack-dev-server": "3.8.1",
"webpack-hot-middleware": "^2.25.0",
"workbox-webpack-plugin": "^4.3.1"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 11"
],
"jest": {
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"setupFiles": [
"raf/polyfill"
],
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
"setupFilesAfterEnv": [
"<rootDir>src/setupTests.ts"
],
"snapshotSerializers": [
"enzyme-to-json"
],
"moduleNameMapper": {
"\\.(css|less|scss|svg|jpg|jpeg|png|gif)$": "identity-obj-proxy",
"^@constants/(.*)$": "<rootDir>/src/constants//$1",
"^@services/(.*)$": "<rootDir>/src/services//$1",
"^@utils/(.*)$": "<rootDir>/src/utils//$1",
"^@assets/(.*)$": "<rootDir>/src/assets//$1",
"^@components/(.*)$": "<rootDir>/src/components//$1",
"^@views/(.*)$": "<rootDir>/src/containers/views//$1",
"^@shared/(.*)$": "<rootDir>/src/containers/shared//$1"
}
}
}