-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
128 lines (128 loc) · 4.58 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
{
"name": "ssr-with-ts",
"version": "1.0.0",
"private": true,
"homepage": "./",
"types": "./src/typings/*.d.ts",
"scripts": {
"prod": "cross-env FRONT_ENV=$front_env npm run build && NODE_ENV=production node ./app/index.js",
"start": "rimraf dist && concurrently \"npm run ssr\" \" npm run csr \"",
"ssr": "concurrently \"cross-env NODE_ENV=development node ./app/index.js\" \"cross-env NODE_ENV=development webpack --watch --config ./build/webpack.config.server.js\"",
"csr": "cross-env NODE_ENV=development node ./build/webpack-dev-server.js",
"build:server": "cross-env NODE_ENV=production webpack --config ./build/webpack.config.server.js",
"build:client": "cross-env NODE_ENV=production webpack --config ./build/webpack.config.client.js",
"build": "rimraf dist && npm run build:client && npm run build:server",
"analyze": "cross-env NODE_ENV=production use_analyzer=true npm run build",
"lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx --ignore-path .eslintignore .",
"lint:js": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=stylish ./src --ignore-path .eslintignore .",
"lint:prettier": "check-prettier lint ./src --ignore-path .eslintignore .",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"prettier": "prettier -c --write \"src/**/*\""
},
"dependencies": {
"antd-mobile": "^2.3.4",
"axios": "^0.21.1",
"compression": "^1.7.4",
"cookie-parser": "^1.4.5",
"express": "^4.17.1",
"http-proxy-middleware": "^1.0.6",
"js-cookie": "^2.2.1",
"path-to-regexp": "^6.2.0",
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react-loadable": "^5.5.0",
"react-redux": "^7.2.2",
"react-router-dom": "^5.1.2",
"redux": "^4.0.5",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0",
"serialize-javascript": "^2.1.2"
},
"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.5.5",
"@types/express": "^4.17.11",
"@types/lodash": "^4.14.168",
"@types/node": "^10.6.0",
"@types/path-to-regexp": "^1.7.0",
"@types/react": "16.9.5",
"@types/react-dom": "16.9.1",
"@types/react-redux": "^7.1.16",
"@types/react-router-dom": "^5.1.0",
"@types/serialize-javascript": "^1.5.0",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"babel-eslint": "^10.1.0",
"babel-loader": "8.0.4",
"babel-plugin-import": "^1.13.3",
"babel-preset-react-app": "^9.0.2",
"check-prettier": "^1.0.3",
"clean-webpack-plugin": "^3.0.0",
"concurrently": "^4.1.0",
"cross-env": "^5.2.0",
"css-hot-loader": "^1.4.3",
"css-loader": "1.0.0",
"dotenv": "^8.2.0",
"dotenv-expand": "^5.1.0",
"eslint": "^7.16.0",
"eslint-config-prettier": "^7.1.0",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.3.0",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-webpack-plugin": "^2.5.2",
"file-loader": "2.0.0",
"husky": "^5.0.9",
"less": "^3.9.0",
"less-loader": "^4.1.0",
"lint-staged": "^10.5.4",
"mini-css-extract-plugin": "^0.5.0",
"morgan": "^1.10.0",
"optimize-css-assets-webpack-plugin": "5.0.1",
"postcss-flexbugs-fixes": "4.1.0",
"postcss-loader": "3.0.0",
"postcss-normalize": "8.0.1",
"postcss-preset-env": "^6.0.5",
"postcss-safe-parser": "4.0.1",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"stylelint": "^13.8.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^20.0.0",
"terser-webpack-plugin": "^1.2.0",
"typescript": "^4.1.3",
"typescript-tslint-plugin": "^1.0.0",
"url-loader": "1.1.1",
"webpack": "4.19.1",
"webpack-bundle-analyzer": "^3.0.3",
"webpack-cli": "^3.3.3",
"webpack-dev-server": "^3.3.1",
"webpack-manifest-plugin": "^2.0.4",
"webpack-merge": "^5.7.3",
"webpack-node-externals": "^1.7.2"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged",
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"**/*.less": "stylelint --syntax less",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write",
"git add"
],
"**/*.{jsx}": "npm run lint-staged:js",
"**/*.{ts,tsx}": "npm run lint-staged:js"
},
"engines": {
"node": ">=10.0.0"
}
}