-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
156 lines (156 loc) · 6.21 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"name": "cbetar2",
"productName": "電子佛典",
"homepage": "/",
"pwaVersion": "10.10.7",
"version": "23.0.0",
"license": "MIT",
"keywords": [
"CBETA",
"電子佛典",
"佛典",
"佛經",
"大藏經",
"Tripitaka",
"Buddhist Canon",
"Buddhist text"
],
"description": "CBETA 電子佛典閱讀器2(非官方),使用 CBETA API 存取電子佛經。",
"repository": "https://github.com/MrMYHuang/cbetar2",
"author": {
"name": "Meng-Yuan Huang",
"email": "[email protected]"
},
"private": false,
"files": [
"README.md"
],
"main": "buildElectron/main.js",
"scripts": {
"rebuild-native-for-electron": "electron-builder install-app-deps",
"start": "vite",
"build": "tsc --noEmit && zip -r public/assets.zip cbetar2 && vite build && node ./tools/build.js",
"start-sw": "npm run build && serve -s build",
"build-electron": "tsc -b tsconfigElectron.json",
"start-electron": "npm run build-electron && npm run rebuild-native-for-electron && electron .",
"debug-electron": "npm run start-electron -- --inspect-brk",
"dist-win": "npm run build-electron && electron-builder -w -c electronBuilderConfigs/win.json",
"build-env": "docker buildx build --platform linux/arm64,linux/amd64 --tag mrmyh/bionic:cbetar2 -f tools/Dockerfile --push .",
"dist-appImage": "npm run build-electron && electron-builder -l AppImage -c electronBuilderConfigs/appImage.json",
"docker-dist-appImage": "docker run -t -e GH_TOKEN -v `pwd`:/cbetar2 mrmyh/bionic:cbetar2 /cbetar2/tools/buildAppImage.sh",
"dist-deb": "export USE_SYSTEM_FPM=true && npm run build-electron && electron-builder -l deb -c electronBuilderConfigs/deb.json",
"dist-debian": "sudo gbp buildpackage --git-force-create --git-pbuilder --git-pbuilder-options='--use-network yes'",
"dist-rpm": "export USE_SYSTEM_FPM=true && npm run build-electron && electron-builder -l rpm -c electronBuilderConfigs/rpm.json",
"eb-dist-snap": "npm run build-electron && rm -f dist/*.snap && electron-builder -l snap -c electronBuilderConfigs/snap.json",
"eb-dist-snap-arm64": "export SNAPCRAFT_BUILD_ENVIRONMENT=lxd && npm run build-electron && rm -f dist/*.snap && electron-builder -l snap -c electronBuilderConfigs/snap.json --arm64",
"dist-snap": "mkdir -p dist && snapcraft snap -o dist",
"publish-snap": "snapcraft upload --release=stable dist/*.snap",
"prepare-flatpak": "tools/prepareFlatpak.sh",
"dist-flatpak-dev": "cd flatpak && flatpak-builder build io.github.mrmyhuang.cbetar2.yml --install --force-clean --user",
"dist-flatpak": "npm run build-electron && electron-builder -l dir -c electronBuilderConfigs/flatpak.json",
"dist-copr-dev": "rpkg local",
"dist-copr": "rpkg build cbetar2",
"dist-pkg-dev": "cd arch && makepkg -f",
"dist-pkg": "tools/preparePkg.sh",
"dist-mac": "npm run build-electron && electron-builder -m pkg -c electronBuilderConfigs/mac.json",
"icons-mas": "cd buildElectron && iconutil -c icns icon.iconset",
"dist-mas-arm64": "npm run build-electron && electron-builder -m mas --arm64 -c electronBuilderConfigs/mas.json",
"dist-mas-dev": "npm run build-electron && electron-builder -m mas-dev --arm64 -c electronBuilderConfigs/masDev.json",
"dist-mas": "npm run build-electron && electron-builder -m mas --universal -c electronBuilderConfigs/mas.json",
"split-fonts": "/Applications/FontForge.app/Contents/MacOS/FFPython tools/font-splitter.py && mv fonts/*.woff2 public/assets"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"dependencies": {
"axios": "^0.26.1",
"electron-window-state": "^5.0.3",
"node-downloader-helper": "^2.1.1",
"semver": "^7.3.7"
},
"devDependencies": {
"@emotion/react": "^11.10.8",
"@emotion/styled": "^11.10.8",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@ionic/react": "^7.3.0",
"@ionic/react-router": "^7.3.0",
"@mui/icons-material": "^5.11.16",
"@mui/lab": "^5.0.0-alpha.128",
"@mui/material": "^5.12.2",
"@reduxjs/toolkit": "^1.8.1",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.0.1",
"@testing-library/user-event": "^14.1.0",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.23",
"@types/qrcode": "^1.4.2",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
"@types/react-redux": "^7.1.23",
"@types/react-router": "^5.1.18",
"@types/react-router-dom": "^5.3.3",
"@types/semver": "^7.3.9",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1",
"@vitejs/plugin-react": "^4.0.0",
"@zip.js/zip.js": "^2.4.14",
"browserify-zlib": "^0.2.0",
"buffer": "^6.0.3",
"constants-browserify": "^1.0.0",
"electron": "^31.3.1",
"electron-builder": "^24.6.4",
"electron-builder-notarize-pkg-myh": "^1.3.0",
"epubjs-myh": "^0.3.125",
"history": "^4.10.1",
"ionicons": "^6",
"memfs": "^3.4.4",
"nodepub": "^3.0.8",
"path-browserify": "^1.0.1",
"qrcode": "^1.5.0",
"query-string": "^7.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.0.1",
"react-router": "^5.3.4",
"react-router-dom": "^5.3.4",
"readable-stream": "^4.1.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"stream-browserify": "^3.0.0",
"swiped-events-myh": "^1.2.0",
"timers-browserify": "^2.0.12",
"typescript": "^4.6.4",
"util": "^0.12.4",
"uuid": "^8.3.2",
"vite": "^4.3.9",
"vite-plugin-pwa": "^0.14.7",
"workbox-background-sync": "^5.1.4",
"workbox-broadcast-update": "^5.1.4",
"workbox-cacheable-response": "^5.1.4",
"workbox-core": "^5.1.4",
"workbox-expiration": "^5.1.4",
"workbox-google-analytics": "^5.1.4",
"workbox-navigation-preload": "^5.1.4",
"workbox-precaching": "^5.1.4",
"workbox-range-requests": "^5.1.4",
"workbox-routing": "^5.1.4",
"workbox-strategies": "^5.1.4",
"workbox-streams": "^5.1.4",
"zip.js-myh": "^2.4.16"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}