-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
87 lines (87 loc) · 2.97 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
{
"name": "node-ssr-react",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"postinstall": "husky install",
"test": "echo \"Error: no test specified\" && exit 1",
"build_client": "cross-env RUN_ENV=client webpack --config ./build/webpack.prod.config.js --progress --colors",
"build_server": "cross-env RUN_ENV=server webpack --config ./build/webpack.server.config.js --progress --colors",
"build_dev": "rimraf ./dist && cross-env CODE_ENV=dev npm run build_client && cross-env CODE_ENV=dev npm run build_server",
"build_qa": "rimraf ./dist && cross-env CODE_ENV=qa npm run build_client && cross-env CODE_ENV=qa npm run build_server",
"build_online": "rimraf ./dist && cross-env CODE_ENV=online npm run build_client && cross-env CODE_ENV=online npm run build_server",
"analyze": "cross-env ANALYZE=1 npm run build_client",
"mock": "cross-env MOCK=1 npm run dev",
"dev": "cross-env CODE_ENV=dev RUN_ENV=server node ./server/app.dev.js --watch server --watch build",
"pm2": "pm2 start ./pm2config.json",
"online": "cross-env NODE_ENV=production node ./dist/server/index.js"
},
"author": "kunkkaliu",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/eslint-parser": "^7.13.4",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.5",
"@babel/register": "^7.12.1",
"@insanecoding/inline-manifest-webpack-plugin": "^1.0.0",
"asset-require-hook": "^1.2.0",
"autoprefixer": "^10.0.2",
"babel-loader": "^8.2.1",
"cross-env": "^7.0.2",
"css-loader": "^5.0.1",
"eslint": "^7.13.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.21.5",
"eslint-webpack-plugin": "^2.5.2",
"file-loader": "^6.2.0",
"html-loader": "^1.3.2",
"html-webpack-plugin": "^4.5.0",
"husky": "^5.1.1",
"ignore-loader": "^0.1.2",
"koa-webpack": "^6.0.0",
"less": "^3.12.2",
"less-loader": "^7.0.2",
"lint-staged": "^10.5.4",
"mini-css-extract-plugin": "^1.3.0",
"postcss": "^8.1.7",
"postcss-loader": "^4.0.4",
"postcss-plugin-px2rem": "^0.8.1",
"rimraf": "^3.0.2",
"url-loader": "^4.1.1",
"webpack": "^4.44.2",
"webpack-bundle-analyzer": "^4.1.0",
"webpack-cli": "^3.3.12",
"webpack-node-externals": "^2.5.2"
},
"dependencies": {
"@babel/runtime-corejs3": "^7.12.5",
"axios": "^0.21.0",
"koa": "^2.13.0",
"koa-compress": "^5.0.1",
"koa-router": "^10.0.0",
"koa-static-cache": "^5.1.4",
"lru-cache": "^6.0.0",
"minirefresh": "^2.0.2",
"mockjs": "^1.1.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"supports-color": "^7.2.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"ie >= 9",
"iOS >= 8",
"Android >= 4"
],
"lint-staged": {
"*.{js,jsx}": [
"eslint --cache --fix"
]
}
}