-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
149 lines (149 loc) · 6.03 KB
/
package.json
File metadata and controls
149 lines (149 loc) · 6.03 KB
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
{
"name": "react-view-cross-platform",
"version": "1.0.0",
"description": "基于 React 的跨平台通用模板(移动/PC/Web)",
"main": "dist/electron/main/main.js",
"scripts": {
"init": "npm i --ignore-scripts",
"preinstall": "npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
"before:app": "vite build --outDir ./cordova/www/dist && cd ./cordova/ && cordova platform remove android && cordova platform add android && cordova plugin add cordova-plugin-splashscreen && cordova plugin add cordova-plugin-apkupdater && cordova plugin add cordova-plugin-autostart@2.3.0 && cordova plugin add cordova-custom-config && cordova plugin add cordova-plugin-x-toast && cordova plugin add cordova-plugin-statusbar",
"dev": "vite",
"dev:app": "npm run before:app && cd ./cordova/ && cordova run android",
"tsc:exe": "tsc ./electron/main/main.ts --outDir dist/electron/main/ | tsc ./electron/preload/preload.ts --outDir dist/ --esModuleInterop true --resolveJsonModule true",
"tsc:electron": "tsc -p tsconfig.electron.json",
"dev:electron": "npm run tsc:electron && electron . dev",
"watch:electron": "nodemon --watch electron/** --ext ts,js,tsx,jsx,json --exec npm run dev:electron",
"dev:exe": "vite --open=false | chcp 65001 | npm run watch:electron",
"build": "vite build",
"build:app": "npm run before:app && cd ./cordova/ && cordova build android --buildConfig=./www/dist/res/android/build_config/build.json --release",
"build:exe": "npm run build && npm run tsc:electron && electron-builder --win --ia32",
"build:linux:info": "Linux 需注意 author 写法;Linux 需有 homepage;Linux 配置需 category;",
"build:linux-arm32": "electron-builder --linux --armv7l",
"build:linux-arm64": "electron-builder --linux --arm64",
"build:exe:dir": "npm run build && npm run tsc:electron && electron-builder --win --ia32 --dir",
"server": "npm run build && vite preview --host",
"server:app": "npm run before:app && cd ./cordova/ && cordova run android --buildConfig=./www/dist/res/android/build_config/build.json --release",
"server:exe": "npm run build && npm run tsc:electron && 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}",
"install:electron-icon": "npm i -D electron-icon-builder --ignore-scripts",
"electron-icon": "electron-icon-builder --input=./src/static/icon.png --output=./public/res/electron/ --flatten",
"eslint:init": "eslint --init",
"update-x": "npm i js-xhttp js-xxx js-xcall",
"update-x-dev": "npm i js-xcmd -D",
"husky": "husky install",
"clean": "xcmd clean",
"time": "xcmd update-time",
"add-less": "npm install less less-loader --save-dev",
"add-sass": "npm install sass sass-loader node-sass --save-dev",
"add-antd-pro-components": "npm i @ant-design/pro-components --save"
},
"husky": {
"hooks": {
"add-script": "prepare : husky install(prepare will run after 'npm install')",
"how-to-use": "npx husky add .husky/pre-commit $YOUR_PRE_COMMIT_HOOK_SCRIPT",
"pre-commit": "npm run lint && npm run time"
}
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@reduxjs/toolkit": "^1.8.3",
"antd": "^4.19.5",
"echarts": "^5.0.2",
"js-xcall": "^1.3.0",
"js-xhttp": "^1.5.1",
"js-xxx": "^1.6.9",
"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",
"store": "^2.0.12"
},
"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",
"electron-icon-builder": "^2.0.1",
"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.4.0",
"less": "^4.1.2",
"less-loader": "^10.2.0",
"nodemon": "^2.0.19",
"prettier": "^2.6.2",
"terser": "^5.14.2",
"vite": "^3.0.8",
"vite-plugin-eslint": "^1.8.1"
},
"author": "Leo <admin@biugle.cn>",
"email": "hxbpandaoh@163.com",
"blog": "http://a.biugle.cn",
"build": {
"productName": "React-View",
"appId": "com.react.view",
"asar": false,
"copyright": "Copyright © 2022 ${author}",
"files": [
"dist/**/*"
],
"directories": {
"output": "build_exe/${version}"
},
"win": {
"target": [
"nsis"
],
"icon": "dist/res/electron/icons/icon.ico"
},
"nsis": {
"language": 2052,
"artifactName": "${productName}-Windows-${version}-Setup.${ext}",
"allowElevation": true,
"installerHeader": "dist/res/electron/icons/icon.ico",
"installerHeaderIcon": "dist/res/electron/icons/icon.ico",
"uninstallerIcon": "dist/res/electron/icons/icon.ico",
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"deleteAppDataOnUninstall": true,
"allowToChangeInstallationDirectory": true,
"oneClick": false
},
"linux": {
"target": [
"deb"
],
"icon": "dist/res/electron/icons",
"category": "Development"
}
},
"license": "MIT",
"bugs": {
"url": "https://github.com/pandaoh/react-view/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pandaoh/react-view.git"
},
"homepage": "https://github.com/pandaoh/react-view/blob/main/README.md",
"time": "2911402120072022"
}