-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
84 lines (84 loc) · 2.55 KB
/
Copy pathpackage.json
File metadata and controls
84 lines (84 loc) · 2.55 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
{
"name": "xiangqi",
"private": true,
"version": "1.0.0",
"type": "module",
"main": "electron/main.cjs",
"author": "xiangqi",
"description": "多棋类游戏(中国象棋 / 棋类博弈 / 斗地主)与桌面端",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",
"check": "tsc -b --noEmit",
"export:tfjs": "scripts/venv/bin/python scripts/export_douzero_tfjs_weights.py",
"build:android": "npm run build && npx cap sync android && cd android && ./gradlew assembleDebug && echo \"APK: app/build/outputs/apk/debug/app-debug.apk\"",
"electron:dev": "npm run build && electron electron/main.cjs",
"dist:desktop": "npm run build && electron-builder --publish=never",
"dist:mac": "npm run build && electron-builder --mac --publish=never",
"dist:win": "npm run build && electron-builder --win --publish=never",
"dist:linux": "npm run build && electron-builder --linux --publish=never"
},
"dependencies": {
"@capacitor/android": "^6.2.1",
"@capacitor/core": "^6.2.1",
"@tensorflow/tfjs": "^4.22.0",
"clsx": "^2.1.1",
"framer-motion": "^12.42.2",
"lucide-react": "^0.511.0",
"mqtt": "^5.15.2",
"onnxruntime-web": "^1.27.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^7.3.0",
"tailwind-merge": "^3.0.2",
"zustand": "^5.0.3"
},
"devDependencies": {
"@capacitor/cli": "^6.2.1",
"@eslint/js": "^9.25.0",
"@types/node": "^22.15.30",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.4.1",
"autoprefixer": "^10.4.21",
"babel-plugin-react-dev-locator": "^1.0.6",
"electron": "^33.0.0",
"electron-builder": "^25.0.0",
"eslint": "^9.25.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^16.0.0",
"postcss": "^8.5.3",
"tailwindcss": "^3.4.17",
"typescript": "~5.8.3",
"typescript-eslint": "^8.30.1",
"vite": "^6.3.5",
"vite-tsconfig-paths": "^5.1.4"
},
"build": {
"appId": "com.xiangqi.app",
"productName": "中国象棋",
"icon": "build/icon.png",
"artifactName": "xiangqi-${version}-${os}-${arch}.${ext}",
"directories": {
"output": "release"
},
"files": [
"dist/**/*",
"electron/**/*"
],
"mac": {
"target": "dmg",
"category": "public.app-category.games"
},
"win": {
"target": "nsis"
},
"linux": {
"target": "AppImage",
"category": "Game"
}
}
}