-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
111 lines (111 loc) · 4.12 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
{
"name": "web_mods_base",
"version": "1.0.0",
"description": "前端模块化客户端模板",
"main": "build/electron/main.js",
"repository": {
"type": "git",
"url": "git+https://github.com/biugle/web_mods_base.git"
},
"keywords": [
"web_mods_base",
"web-template",
"web-app"
],
"author": "Leo <[email protected]>",
"publisher": "biugle",
"email": "[email protected]",
"blog": "http://a.biugle.cn",
"license": "MIT",
"bugs": {
"url": "https://github.com/biugle/web_mods_base/issues"
},
"homepage": "https://github.com/biugle/web_mods_base/blob/main/README.md",
"scripts": {
"init": "npm i --ignore-scripts",
"git": "git init",
"husky": "npm run git && husky install && npm run add-husky-scripts && npm run replace-husky-scripts && npm run lint",
"prepare:按需使用(hooks)": "npm run husky",
"add-husky-scripts": "husky add .husky/pre-commit npm_s_run_s_update:hooks && husky add .husky/pre-commit npm_s_run_s_lint && husky add .husky/pre-commit npm_s_run_s_time && husky add .husky/pre-commit git_s_add_s_.",
"replace-husky-scripts": "xcmd replace-file-content .husky/pre-commit _s_ [space]",
"electron-icon": "electron-icon-builder --input=./resource/icon.png --output=./resource/electron-icon-builder --flatten",
"before:exe": "tsc -p tsconfig.electron.json",
"pull:submodules": "echo '同步拉取 git 子模组-暂未测试使用' && git submodule update --init --recursive && git submodule foreach git pull origin master",
"async:modules": "echo '同步模块至 build 目录' && xcmd rm-rf ./build/modules && xcmd copy-dir ./modules ./build/modules",
"dev": "npm run async:modules && chcp 65001 | vite -m electron",
"build": "vite build && npm run async:modules && npm run before:exe && electron-builder --config=electron-builder-win.json",
"preview": "vite build && npm run async:modules && npm run before:exe && chcp 65001 | electron . prod",
"eslint": "eslint ./ --fix --ext .ts,.tsx,.js,.jsx,.vue",
"prettier": "prettier --write ./**/*.{ts,tsx,js,jsx,vue,html,css,scss,less}",
"lint": "npm run prettier && npm run eslint",
"lint-staged": "npx lint-staged",
"time": "xcmd update-time",
"clean": "npm cache clean --force && xcmd clean",
"update:hooks": "npm i js-xhttp js-xxx js-xcall && npm i js-xcmd -D"
},
"dependencies": {
"@ant-design/icons": "^5.0.1",
"@ant-design/pro-components": "^2.4.16",
"@reduxjs/toolkit": "^1.9.5",
"antd": "^5.4.6",
"dayjs": "^1.11.11",
"electron-updater": "^5.3.0",
"js-xcall": "^1.3.1",
"js-xhttp": "^1.6.1",
"js-xxx": "^2.2.19",
"mime-types": "^2.1.35",
"react": "^17.0.2",
"react-activation": "^0.12.4",
"react-dom": "^17.0.2",
"react-redux": "^8.0.5",
"react-router-dom": "^5.3.0"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@types/node": "^18.16.1",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/react-router-dom": "^5.1.13",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"@vitejs/plugin-react": "^4.0.0",
"electron": "^24.4.0",
"electron-builder": "^23.6.0",
"electron-icon-builder": "^2.0.1",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-spellcheck": "0.0.20",
"eslint-plugin-zob": "^0.4.0",
"husky": "^8.0.3",
"js-xcmd": "^1.5.6",
"less": "^4.1.3",
"less-loader": "^11.1.0",
"lint-staged": "^13.3.0",
"prettier": "^2.8.8",
"terser": "^5.17.1",
"typescript": "^5.0.2",
"vite": "^4.3.9",
"vite-plugin-electron": "^0.11.2",
"vite-plugin-eslint": "^1.8.1"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx,vue,html,css,scss,less}": [
"prettier --write",
"eslint --fix",
"git add ."
]
},
"packageManager": "[email protected]",
"engines": {
"react": "<18",
"node": ">=14",
"pnpm": ">=6.20.0",
"npm": ">=8.0.0",
"git": ">=2.30.0"
},
"time": "2505121531052023"
}