-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
135 lines (135 loc) · 4.17 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
133
134
135
{
"name": "magic-mana-opensource",
"version": "1.0.0-opensource",
"main": "dist/main/background.js",
"description": "缇尔蒂的魔法小屋",
"homepage": "https://github.com/tiltysola/magic-mana-client-opensource",
"author": "TiltySola",
"repository": {
"url": "https://github.com/tiltysola/magic-mana-client-opensource.git"
},
"scripts": {
"dev": "concurrently -k -n=react,electron -c=green,blue \"npm run dev:react\" \"npm run dev:electron\"",
"dev:react": "vite --mode development",
"dev:electron": "cross-env NODE_ENV=development node build/electron.js",
"build": "npm run build:react && npm run build:electron",
"build:win": "npm run build:react && npm run build:electron:win",
"build:mac": "npm run build:react && npm run build:electron:mac",
"build:react": "vite build",
"build:electron": "cross-env NODE_ENV=production node build/electron.js && electron-builder build",
"build:electron:win": "cross-env NODE_ENV=production node build/electron.js && electron-builder build --win",
"build:electron:mac": "cross-env NODE_ENV=production node build/electron.js && electron-builder build --mac",
"serve:react": "vite preview",
"lint": "eslint .",
"lint:fix": "eslint src --fix",
"prettier": "prettier --write src",
"fix": "npm run prettier && npm run lint:fix",
"clean": "rm -rf dist"
},
"build": {
"appId": "cn.mahoutsukai.opensource.client",
"productName": "缇尔蒂的魔法小屋",
"copyright": "TiltySola (tilty.mahoutsukai.cn)",
"artifactName": "magic-mana-opensource-${os}-${version}.${ext}",
"mac": {
"icon": "build/icons/mac/common/icon.icns"
},
"win": {
"icon": "build/icons/win/icon.ico"
},
"linux": {
"icon": "build/icons/png/common/512x512.png"
},
"nsis": {
"oneClick": true
},
"generateUpdatesFilesForAllChannels": true,
"files": [
"node_modules",
"dist/main/**",
"dist/render/**"
],
"extraFiles": [
{
"from": "build",
"to": "build",
"filter": [
"**/*"
]
},
{
"from": "external",
"to": "external",
"filter": [
"**/*"
]
}
],
"electronDownload": {
"mirror": "https://npmmirror.com/mirrors/electron/"
},
"nsisWeb": {
"appPackageUrl": "https://npmmirror.com/mirrors/electron-builder-binaries/"
}
},
"dependencies": {
"@ant-design/icons": "^5.1.4",
"ahooks": "^3.7.8",
"axios": "^1.4.0",
"base64-arraybuffer": "^1.0.2",
"braft-editor": "^2.3.9",
"braft-utils": "^3.0.12",
"chalk": "^4.1.2",
"classnames": "^2.3.2",
"crypto-js": "^4.1.1",
"dayjs": "^1.11.9",
"electron-updater": "^6.1.1",
"form-data": "^4.0.0",
"iconv-lite": "^0.6.3",
"keycode": "^2.2.1",
"native-reg": "^1.1.1",
"ps-list": "^8.1.1",
"qrcode": "^1.5.3",
"query-string": "^8.1.0",
"react": "^18.2.0",
"react-color-palette": "^6.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.13",
"react-router-dom": "^6.14.2",
"recoil": "^0.7.7",
"socket.io-client": "^4.7.1",
"sudo-prompt": "^9.2.1",
"systeminformation": "^5.21.24",
"taskkill": "^5.0.0",
"whatwg-fetch": "^3.6.17",
"yaml": "^2.3.1"
},
"devDependencies": {
"@types/qrcode": "^1.5.1",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@types/react-router-dom": "^5.3.3",
"@types/taskkill": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"@vitejs/plugin-react": "^4.0.3",
"concurrently": "^8.2.0",
"cross-env": "^7.0.3",
"electron": "^30.0.6",
"electron-builder": "^24.13.3",
"electron-connect": "^0.6.3",
"esbuild": "^0.16.17",
"eslint": "^8.45.0",
"eslint-config-ali": "^14.0.2",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-react": "^7.33.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"less": "^4.1.3",
"prettier": "^3.0.0",
"typescript": "^5.1.6",
"vite": "^4.4.6",
"vite-plugin-eslint": "^1.8.1"
}
}