-
Notifications
You must be signed in to change notification settings - Fork 157
/
package.json
393 lines (393 loc) · 16.3 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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
{
"name": "EDRLab.ThoriumReader",
"version": "2.0.0-alpha.1",
"description": "Desktop application to read ebooks",
"keywords": [
"readium",
"epub",
"audiobook"
],
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"type": "commonjs",
"main": "dist/main.js",
"scripts": {
"clean": "rimraf dist && rimraf release",
"test": "cross-env JEST_TESTS=1 jest --config=jest.config.js --verbose --runInBand --bail=1 --no-cache \"test\"",
"testFile": "cross-env JEST_TESTS=1 jest --config=jest.config.js --verbose --runInBand --bail=1 --no-cache ",
"postinstall": "npm run pinCompromisedColorPackage && npm run rmDupeReactReduxTypes && npm run electron-build",
"pinCompromisedColorPackage": "(npm ls colors || echo \"NPM LS?\") && rimraf node_modules/electron-rebuild/node_modules/colors && rimraf node_modules/dir-compare/node_modules/colors",
"pinCompromisedColorPackage_": "find node_modules -maxdepth 100 -type d -name \"colors\" && npm ls colors",
"electron-build_": "npm rebuild --runtime=electron --target=17.2.0 --disturl=https://atom.io/download/atom-shell --build-from-source",
"electron-build": "electron-rebuild --version=17.2.0 --disturl=https://atom.io/download/atom-shell",
"rmDupeReactReduxTypes": "rimraf \"./node_modules/@types/react-redux/node_modules/@types/react\"",
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js && ncp src/package.json dist/package.json",
"build:prod": "npm run lint && npm run build",
"build:dev:main": "webpack --config webpack.config.main.js",
"build:dev:renderer:library": "webpack --config webpack.config.renderer-library.js",
"build:dev:renderer:reader": "webpack --config webpack.config.renderer-reader.js",
"build:dev:renderer:pdf": "webpack --config webpack.config.renderer-pdf.js",
"start": "npm run build:prod && cross-env DEBUG=r2:*,readium-desktop:* electron .",
"start:quick": "cross-env DEBUG=r2:*,readium-desktop:* electron .",
"lint:ts": "eslint \"src/**/*.{ts,tsx}\"",
"lint:ts:fix": "eslint --fix \"src/**/*.{ts,tsx}\"",
"lint:editorconfig": "eclint check '**/*' '!**/package-lock.json' '!changelogs/**/*' '!.vscode/**/*' '!.git/**/*' '!node_modules/**/*' '!resources/**/*' '!src/renderer/assets/**/*' '!dist/**/*' '!release/**/*' '!**/.DS_Store' '!src/typings/en.translation.d.*' '!src/main/w3c/**' '!src/resources/**/*' '!src/**/*.bcmap' '!src/**/*.svg'",
"lint:editorconfig:fix": "eclint fix '**/*' '!**/package-lock.json' '!changelogs/**/*' '!.vscode/**/*' '!.git/**/*' '!node_modules/**/*' '!resources/**/*' '!src/renderer/assets/**/*' '!dist/**/*' '!release/**/*' '!**/.DS_Store' '!src/typings/en.translation.d.*' '!src/main/w3c/**' '!src/resources/**/*' '!src/**/*.bcmap' '!src/**/*.svg'",
"lint:css": "stylelint \"src/renderer/assets/styles/**/*.css\"",
"lint:css:fix": "stylelint --fix \"src/renderer/assets/styles/**/*.css\"",
"lint": "npm run lint:editorconfig && npm run lint:ts && npm run lint:css",
"lint:fix": "npm run lint:editorconfig:fix && npm run lint:ts:fix && npm run lint:css:fix",
"start:dev:renderer:library-reader-pdf": "npm run start:dev:renderer:pdf && concurrently --kill-others \"npm run start:dev:renderer:library\" \"npm run start:dev:renderer:reader\"",
"start:dev:renderer:library": "webpack-dev-server --config webpack.config.renderer-library.js",
"start:dev:renderer:reader": "webpack-dev-server --config webpack.config.renderer-reader.js",
"start:dev:renderer:pdf": "webpack --config webpack.config.renderer-pdf.js",
"start:dev:main:electron": "cross-env DEBUG=r2:*,readium-desktop:* NODE_ENV=development electron .",
"start:dev:main": "npm run build:dev:main && npm run start:dev:main:electron",
"start:devex": "cross-env WEBPACK=bundle-external npm run start:dev",
"start:dev": "cross-env DEBUG_COLORS=true npm run start:dev:renderer:pdf && cross-env DEBUG_COLORS=true concurrently --kill-others \"npm run start:dev:renderer:library\" \"npm run start:dev:renderer:reader\" \"npm run start:dev:main\"",
"start:dev:quick": "cross-env SKIP_CHECK_TYPESCRIPT=1 npm run start:dev",
"vscode:launch:attach:electron": "electron --enable-logging --remote-debugging-port=9223 --inspect=25575 --nolazy .",
"vscode:launch:attach": "cross-env DEBUG=r2:*,readium-desktop:* NODE_ENV=development VSCODE_LAUNCH=true npm run build:dev:main && npm run start:dev:renderer:pdf && concurrently --kill-others \"npm run start:dev:renderer:library\" \"npm run start:dev:renderer:reader\" \"npm run vscode:launch:attach:electron\"",
"vscode:launch:hot": "cross-env DEBUG=r2:*,readium-desktop:* NODE_ENV=development VSCODE_LAUNCH=true npm run build:dev:main",
"prepackage:build": "npm run clean",
"package:build": "cross-env PACKAGING=1 npm run build:prod",
"prepackage:pack-only": "npm run package:build",
"package:pack-only": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --dir --publish never",
"prepackage": "npm run package:build",
"package": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --publish never",
"prepackage:win": "npm run package:build",
"package:win": "cross-env DEBUG=* CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --win --x64 --publish never",
"prepackage:linux": "npm run package:build",
"package:linux": "cross-env DEBUG=* CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --linux --x64 --publish never",
"prepackage:mac": "npm run package:build",
"package:mac": "cross-env DEBUG=* electron-builder --mac --x64 --publish never",
"package:mac:skip-notarize": "cross-env SKIP_NOTARIZE=1 npm run package:mac",
"prepackage:all": "npm run package:build",
"package:all": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -mwl --x64 --publish never",
"cli:help": "electron . --help",
"cli": "cross-env DEBUG=r2:*,readium-desktop:* electron .",
"i18n-sort": "node ./scripts/locales-sort.js",
"i18n-scan": "node ./scripts/translate-scan.js \"src/resources/locales/temp.json\" && sync-i18n --files 'src/resources/locales/*.json' --primary temp --languages en de es fr ja ka lt nl pt-br pt-pt it zh-cn ru fi sv --space 4 --finalnewline --newkeysempty && rimraf \"src/resources/locales/temp.json\"",
"i18n-check": "sync-i18n --files 'src/resources/locales/*.json' --primary en --languages de es fr ja ka lt nl pt-br pt-pt it zh-cn ru fi sv --space 4 --finalnewline --newkeysempty",
"i18n-typed": "node ./scripts/locale-wrap.js \"src/resources/locales/en.json\" \"en.json\" && typed_i18n -i \"en.json\" -o src/typings -l typescript && rimraf \"en.json\"",
"style-typed": "tcm \"src/renderer/assets/styles\"",
"ts-unused-exports_": "tcm --namedExports \"src/renderer/assets/styles\" && ts-unused-exports ./tsconfig.json $(find ./src/renderer/assets/styles -name '*.d.ts') || npm run style-typed",
"ts-unused-exports": "ts-unused-exports ./tsconfig.json --ignoreFiles=\"test/.*\"",
"ts-prune": "ts-prune --project ./tsconfig.json --ignore \"(/main|/common|/test|/typings|/utils|preprocessor-directives)/.*\"",
"redux-devtools": "redux-devtools --hostname=localhost --port=7770",
"execFile": "cross-env DEBUG=r2:*,readium-desktop:* ts-node -r tsconfig-paths/register",
"bundle-stats": "npm run bundle-stats_renderer-library && npm run bundle-stats_renderer-reader && npm run bundle-stats_renderer-pdf && npm run bundle-stats_renderer-preload && npm run bundle-stats_main",
"bundle-stats_renderer-library": "webpack-bundle-analyzer dist/stats_renderer-library.json dist --report dist/stats_renderer-library.html --mode static --default-sizes stat --log-level debug",
"bundle-stats_renderer-reader": "webpack-bundle-analyzer dist/stats_renderer-reader.json dist --report dist/stats_renderer-reader.html --mode static --default-sizes stat --log-level debug",
"bundle-stats_renderer-pdf": "webpack-bundle-analyzer dist/stats_renderer-pdf.json dist --report dist/stats_renderer-pdf.html --mode static --default-sizes stat --log-level debug",
"bundle-stats_renderer-preload": "webpack-bundle-analyzer dist/stats_renderer-preload.json dist --report dist/stats_renderer-preload.html --mode static --default-sizes stat --log-level debug",
"bundle-stats_main": "webpack-bundle-analyzer dist/stats_main.json dist --report dist/stats_main.html --mode static --default-sizes stat --log-level debug"
},
"repository": {
"type": "git",
"url": "git@github.com:edrlab/readium-desktop.git"
},
"author": {
"name": "EDRLab",
"organization": "EDRLab",
"email": "contact@edrlab.org",
"url": "http://github.com/edrlab/"
},
"license": "BSD-3-Clause",
"licenses": [
{
"type": "BSD-3-Clause",
"url": "http://opensource.org/licenses/BSD-3-Clause"
}
],
"bugs": {
"url": "https://github.com/edrlab/readium-desktop/issues"
},
"homepage": "https://github.com/edrlab/readium-desktop",
"build": {
"productName": "Thorium",
"appId": "io.github.edrlab.thorium",
"protocols": {
"name": "thorium",
"schemes": [
"thorium",
"opds"
]
},
"afterSign": "scripts/notarize.js",
"dmg": {
"sign": false,
"contents": [
{
"x": 410,
"y": 150,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 150,
"type": "file"
}
]
},
"files": [
"node_modules/",
"external-assets/",
"assets/",
"ReadiumCSS/",
"MathJax/",
"index_pdf.js",
"index_library.html",
"index_library.js",
"index_reader.html",
"index_reader.js",
"styles_library.css",
"styles_reader.css",
"preload.js",
"main.js",
"package.json",
"fonts"
],
"asarUnpack": [
"**/*.node",
"**/lcp.node"
],
"directories": {
"buildResources": "resources",
"output": "release",
"app": "dist"
},
"fileAssociations": [
{
"ext": "epub",
"role": "Viewer",
"mimeType": "application/epub+zip"
},
{
"ext": "epub3",
"role": "Viewer",
"mimeType": "application/epub+zip"
},
{
"ext": "daisy",
"role": "Viewer",
"mimeType": "application/daisy+zip"
},
{
"ext": "lcpl",
"role": "Viewer",
"mimeType": "application/vnd.readium.lcp.license.v1.0+json"
},
{
"ext": "audiobook",
"role": "Viewer",
"mimeType": "application/audiobook+zip"
},
{
"ext": "webpub",
"role": "Viewer",
"mimeType": "application/webpub+zip"
},
{
"ext": "lcpa",
"role": "Viewer",
"mimeType": "application/audiobook+lcp"
},
{
"ext": "lcpaudiobook",
"role": "Viewer",
"mimeType": "application/audiobook+lcp"
},
{
"ext": "lcpdf",
"role": "Viewer",
"mimeType": "application/pdf+lcp"
}
],
"win": {
"target": [
"appx",
"nsis"
],
"icon": "dist/assets/icons/icon.ico"
},
"linux": {
"target": [
"deb",
"AppImage"
],
"desktop": {
"MimeType": "application/epub+zip"
},
"executableName": "thorium",
"category": "Office"
},
"mac": {
"category": "public.app-category.developer-tools",
"target": "dmg",
"type": "distribution",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "./scripts/entitlements.mac.plist",
"entitlementsInherit": "./scripts/entitlements.mac.plist"
},
"appx": {
"displayName": "Thorium Reader",
"publisher": "CN=C91F86A8-45E6-48E0-8015-8A5BF2B38BD4"
}
},
"dependencies": {
"@xmldom/xmldom": "^0.8.1",
"classnames": "^2.3.1",
"commonmark": "^0.30.0",
"debounce": "^1.2.1",
"debug": "^4.3.4",
"divina-player-js": "git+https://github.com/readium/divina-player-js.git#4e1f859afb14b916923ec136af0284a72e22a990",
"dompurify": "^2.3.6",
"fetch-cookie": "^2.0.3",
"glob": "^7.2.0",
"history": "^5.3.0",
"i18next": "^21.6.14",
"inversify": "^6.0.1",
"inversify-inject-decorators": "^3.1.0",
"lunr": "^2.3.9",
"lunr-languages": "^1.9.0",
"match-sorter": "^6.3.1",
"mathjax": "^3.2.0",
"mime-types": "^2.1.35",
"nanoid": "^3.3.2",
"node-fetch": "^3.2.3",
"opds-feed-parser": "0.0.18",
"r2-lcp-js": "^1.0.35",
"r2-navigator-js": "^1.10.0",
"r2-opds-js": "^1.0.39",
"r2-shared-js": "^1.0.59",
"r2-streamer-js": "^1.0.42",
"r2-utils-js": "^1.0.31",
"ramda": "^0.28.0",
"react": "^17.0.2",
"react-beautiful-dnd": "^13.1.0",
"react-dom": "^17.0.2",
"react-dropzone": "^12.0.4",
"react-focus-lock": "^2.8.1",
"react-redux": "^7.2.8",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0",
"react-table": "^7.7.0",
"redux": "^4.1.2",
"redux-first-history": "^5.0.8",
"redux-saga": "^1.1.3",
"reflect-metadata": "^0.1.13",
"regenerator-runtime": "^0.13.9",
"rfc6902": "^5.0.1",
"ta-json-x": "^2.5.3",
"timeout-signal": "^1.1.0",
"tmp": "^0.2.1",
"typed-redux-saga": "^1.4.0",
"uuid": "^8.3.2",
"validator": "^13.7.0",
"xml-js": "^1.6.11",
"yargs": "^17.4.0",
"yauzl": "^2.10.0",
"yazl": "^2.5.1"
},
"devDependencies": {
"@babel/generator": "^7.17.7",
"@kogai/typed_i18n": "^0.6.0",
"@octokit/rest": "^18.12.0",
"@types/classnames": "^2.3.1",
"@types/commonmark": "^0.27.5",
"@types/debounce": "^1.2.1",
"@types/dompurify": "^2.3.3",
"@types/glob": "^7.2.0",
"@types/jest": "^27.4.1",
"@types/jsdom": "^16.2.14",
"@types/lunr": "^2.3.4",
"@types/mime-types": "^2.1.1",
"@types/node": "^16.11.26",
"@types/ramda": "^0.28.7",
"@types/react": "^17.0.43",
"@types/react-beautiful-dnd": "^13.1.2",
"@types/react-dom": "^17.0.14",
"@types/react-redux": "^7.1.23",
"@types/react-router": "^5.1.18",
"@types/react-router-dom": "^5.3.3",
"@types/react-table": "^7.7.10",
"@types/redux": "^3.6.31",
"@types/remote-redux-devtools": "^0.5.5",
"@types/tmp": "^0.2.3",
"@types/urijs": "^1.19.19",
"@types/uuid": "^8.3.4",
"@types/validator": "^13.7.2",
"@types/xmldom": "^0.1.31",
"@types/yargs": "^17.0.10",
"@types/yauzl": "^2.9.2",
"@types/yazl": "^2.4.2",
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
"babel-loader": "^8.2.4",
"babel-plugin-macros": "^3.1.0",
"concurrently": "^7.1.0",
"copy-webpack-plugin": "^10.2.4",
"cross-env": "^7.0.3",
"css-hot-loader": "^1.4.4",
"css-loader": "^6.7.1",
"devtron": "^1.4.0",
"eclint": "^2.8.1",
"electron": "^18.0.1",
"electron-builder": "^23.0.3",
"electron-devtools-installer": "^3.2.0",
"electron-notarize": "^1.2.1",
"electron-rebuild": "^3.2.7",
"eslint": "^8.12.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-local-rules": "^1.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-unused-imports": "^2.0.0",
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "^7.2.3",
"git-rev-sync": "^3.0.2",
"html-loader": "^3.1.0",
"html-webpack-plugin": "^5.5.0",
"i18next-json-sync": "^2.3.1",
"jest": "^27.5.1",
"json-diff": "^0.7.3",
"markdown-loader": "^8.0.0",
"mini-css-extract-plugin": "^2.6.0",
"ncp": "^2.0.0",
"node-loader": "^2.0.0",
"postcss": "^8.4.12",
"postcss-import": "^14.1.0",
"postcss-loader": "^6.2.1",
"postcss-mixins": "^9.0.2",
"postcss-nesting": "^10.1.4",
"prettier": "^2.6.2",
"react-axe": "^3.5.4",
"react-svg-loader": "^3.0.3",
"redux-devtools-extension": "^2.13.9",
"remote-redux-devtools": "^0.5.16",
"rimraf": "^3.0.2",
"style-loader": "^3.3.1",
"stylelint": "^14.6.1",
"stylelint-config-standard": "^25.0.0",
"svg-sprite-loader": "^6.0.11",
"terser-webpack-plugin": "^5.3.1",
"ts-jest": "^27.1.4",
"ts-loader": "^9.2.8",
"ts-prune": "^0.10.3",
"ts-unused-exports": "^8.0.0",
"tsconfig-paths": "^3.14.1",
"typed-css-modules": "^0.7.0",
"typescript": "^4.6.3",
"webpack": "^5.71.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.7.4",
"webpack-node-externals": "^3.0.0",
"worker-loader": "^3.0.8"
}
}