-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
package.json
188 lines (188 loc) · 5.47 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
{
"name": "kiwix-js-electron",
"productName": "Kiwix JS Electron",
"version": "3.5.1-E",
"description": "Kiwix JS offline ZIM archive reader packaged for the Electron framework",
"main": "main.cjs",
"type": "module",
"build": {
"appId": "kiwix.js.electron",
"productName": "Kiwix JS Electron",
"directories": {
"output": "bld/Electron",
"buildResources": "../electron_icons"
},
"win": {
"certificateSha1": "82B88B62A6F87FBA62B2C933D747E52EDBF0F7F6",
"signingHashAlgorithms": [
"sha256"
],
"rfc3161TimeStampServer": "http://ts.ssl.com",
"asar": "true",
"extraResources": {
"from": "archives",
"to": "archives"
},
"publish": [
"github"
],
"target": [
{
"target": "NSIS",
"arch": "ia32"
},
{
"target": "portable",
"arch": "ia32"
},
{
"target": "appx"
},
{
"target": "nsis-web",
"arch": "ia32"
},
{
"target": "nsis-web",
"arch": "x64"
},
{
"target": "nsis-web",
"arch": "arm64"
}
]
},
"linux": {
"asar": "true",
"extraResources": {
"from": "archives",
"to": "archives"
},
"publish": [
"github"
],
"target": [
{
"target": "AppImage",
"arch": [
"x64",
"arm64"
]
},
{
"target": "deb",
"arch": [
"x64"
]
},
{
"target": "rpm",
"arch": [
"x64"
]
}
],
"category": "Education"
},
"nsis": {
"oneClick": "false",
"allowElevation": "true",
"runAfterFinish": "true"
},
"nsisWeb": {
"oneClick": "false",
"allowElevation": "true",
"runAfterFinish": "true"
},
"appx": {
"backgroundColor": "transparent",
"displayName": "Kiwix JS",
"identityName": "Kiwix.KiwixJS",
"publisher": "CN=Association Kiwix, O=Association Kiwix, L=Lausanne, S=Canton of Vaud, C=CH",
"publisherDisplayName": "Association Kiwix",
"languages": "en-GB",
"showNameOnTiles": "true"
},
"files": [
"service-worker.js",
"index.html",
"CHANGELOG.md",
"LICENCE",
"manifest.json",
"replayWorker.js",
"www/**",
"preload.cjs",
"main.cjs",
"!**/*.dev.{js,wasm}"
]
},
"scripts": {
"serve": "vite",
"preview": "del-cli dist && npm run build-src && vite preview",
"prebuild": "del-cli dist",
"build": "rollup --config --file dist/www/js/bundle.js && rollup --config --file dist/www/js/bundle.min.js --environment BUILD:production",
"prebuild-min": "del-cli dist",
"build-min": "rollup --config --file dist/www/js/bundle.min.js --environment BUILD:production",
"prebuild-src": "del-cli dist",
"build-src": "rollup --config --file dist/www/js/bundle.js",
"del": "del-cli dist",
"start": "electron .",
"dist-win": "electron-builder build --win --projectDir dist",
"dist-win-arm64": "electron-builder build --win NSIS:arm64 --projectDir dist",
"dist-win-nsis": "electron-builder build --win NSIS:ia32 --publish never --projectDir dist",
"dist-win-nsis-skipsigning": "electron-builder build --config ../scripts/electronBuilder.cjs --win NSIS:ia32 --publish never --projectDir dist",
"dist-win-nisis-x64": "electron-builder build --win NSIS:x64 --publish never --projectDir dist",
"dist-linux": "electron-builder build --linux --projectDir dist",
"dist-linux-appimage": "electron-builder build --linux AppImage:x64 --projectDir dist",
"publish": "electron-builder build --projectDir dist",
"build-skipsigning": "electron-builder build --config ../scripts/electronBuilder.cjs --publish never --projectDir dist",
"postpackage-win": "(robocopy archives bld\\Electron\\kiwix-js-pwa-win32-ia32\\resources\\app\\archives\\ > null) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0",
"postpackage-linux": "(robocopy archives bld\\Electron\\kiwix-js-pwa-linux-x64\\archives\\ > null) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0"
},
"repository": "https://github.com/kiwix/kiwix-js-pwa",
"keywords": [
"Kiwix",
"offline",
"Wikipedia",
"ZIM",
"reader"
],
"author": {
"name": "Kiwix",
"email": "[email protected]"
},
"maintainer": "Jaifroid",
"license": "CC0-1.0",
"devDependencies": {
"@babel/cli": "^7.21.5",
"@babel/core": "^7.21.5",
"@babel/preset-env": "^7.21.5",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@vitejs/plugin-legacy": "^4.0.3",
"babel-plugin-polyfill-corejs3": "^0.7.1",
"del-cli": "^5.0.0",
"electron": "29.3.1",
"electron-builder": "^24.13.3",
"eslint": "^8.42.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^16.0.0",
"eslint-plugin-promise": "^6.1.1",
"rollup": "^4.5.0",
"rollup-plugin-copy": "^3.4.0",
"vite": "^4.5.3"
},
"dependencies": {
"@types/fs-extra": "^9.0.11",
"core-js": "3.30.2",
"electron-context-menu": "^3.1.1",
"electron-store": "^8.1.0",
"electron-updater": "^6.2.1",
"express": "^4.21.0",
"jquery": "^3.7.1"
}
}