-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
132 lines (132 loc) · 4.33 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
{
"name": "react_micro_web",
"version": "1.0.0",
"main": "dist/electron/main.js",
"description": "简易伪微前端模板-太极(TaiJi)",
"scripts": {
"init": "npm i --ignore-scripts",
"preinstall": "npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
"prepare": "husky install && npx husky add .husky/pre-commit npm_run_lint && npx husky add .husky/pre-commit npm_run_time && npx husky add .husky/pre-commit npm_run_update-hooks",
"prepare:after": "因为 windows 系统执行 husky 命令带空格会报错,所以完成安装后记得替换 .husky/pre-commit 中的 _ 为空格。",
"before:exe": "tsc -p tsconfig.electron.json",
"dev": "vite",
"dev:exe": "chcp 65001 | vite --open=false -m electron",
"build": "vite build",
"build:exe": "npm run build && npm run before:exe && electron-builder --win --ia32",
"server": "npm run build && vite preview --host",
"server:exe": "npm run build && npm run before:exe && chcp 65001 | electron . prod",
"lint": "npm run prettier && npm run eslint",
"eslint": "eslint ./ --fix --ext .ts,.tsx,.js,.jsx,.vue",
"prettier": "prettier --write ./**/*.{ts,tsx,js,jsx,vue,html,css,scss,less}",
"eslint:init": "eslint --init",
"update-hooks": "npm run update-x && npm run update-x-dev",
"update-x": "npm i js-xhttp js-xxx js-xcall",
"update-x-dev": "npm i js-xcmd -D",
"clean": "xcmd clean",
"time": "xcmd update-time"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run time && npm run update-hooks"
}
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@ant-design/pro-components": "^1.1.12",
"@reduxjs/toolkit": "^1.8.3",
"antd": "^4.19.5",
"js-xcall": "^1.3.0",
"js-xhttp": "^1.5.1",
"js-xxx": "^1.6.0",
"react": "^17.0.2",
"react-activation": "^0.11.2",
"react-dom": "^17.0.2",
"react-redux": "^8.0.2",
"react-router-dom": "^5.2.0"
},
"resolutions": {
"@types/react": "17.0.48",
"@types/react-dom": "17.0.17",
"@types/react-router-dom": "5.1.9"
},
"devDependencies": {
"@babel/core": "^7.18.10",
"@types/node": "^17.0.24",
"@types/react": "^17.0.3",
"@types/react-dom": "^17.0.3",
"@types/react-router-dom": "^5.1.7",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"@vitejs/plugin-react": "^2.0.1",
"electron": "^18.3.8",
"electron-builder": "^23.3.3",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-spellcheck": "0.0.19",
"eslint-plugin-zob": "^0.4.0",
"husky": "^7.0.4",
"js-xcmd": "^1.3.0",
"node-sass": "^7.0.1",
"prettier": "^2.6.2",
"sass": "^1.53.0",
"sass-loader": "^13.0.2",
"terser": "^5.14.2",
"vite": "^3.0.8",
"vite-plugin-electron": "^0.9.0",
"vite-plugin-eslint": "^1.8.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pandaoh/react_micro_web.git"
},
"keywords": [
"micro-web",
"react-system",
"react-admin",
"react-app",
"admin-system-app"
],
"author": "leo he",
"email": "[email protected]",
"blog": "http://a.biugle.cn",
"license": "MIT",
"bugs": {
"url": "https://github.com/pandaoh/react_micro_web/issues"
},
"homepage": "https://github.com/pandaoh/react_micro_web/blob/main/README.md",
"build": {
"productName": "TaiJi",
"appId": "com.taiji.react.micro.web",
"asar": true,
"copyright": "Copyright © 2022 ${author}",
"files": [
"dist/**/*"
],
"directories": {
"output": "build_exe/${version}"
},
"win": {
"target": [
"nsis"
],
"icon": "dist/electron/icons/icon.ico"
},
"nsis": {
"language": 2052,
"artifactName": "${productName}-Windows-${version}-Setup.${ext}",
"allowElevation": true,
"installerHeader": "dist/electron/icons/icon.ico",
"installerHeaderIcon": "dist/electron/icons/icon.ico",
"uninstallerIcon": "dist/electron/icons/icon.ico",
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"deleteAppDataOnUninstall": true,
"allowToChangeInstallationDirectory": true,
"oneClick": false
}
},
"time": "3020291721072022"
}