-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
158 lines (158 loc) · 7.74 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
{
"name": "r2-navigator-js",
"version": "1.16.5",
"description": "Readium 2 'navigator' for NodeJS (TypeScript)",
"keywords": [
"readium",
"readium2",
"navigator",
"EPUB",
"TypeScript",
"JavaScript",
"ES6",
"ECMAScript 2015",
"ECMAScript 6",
"ES7",
"ECMAScript 2016",
"ECMAScript 7",
"ES8",
"ECMAScript 2017",
"ECMAScript 8"
],
"engines": {
"node": ">=20.0.0",
"npm": ">=10.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/readium/r2-navigator-js.git"
},
"author": {
"name": "Readium Foundation",
"organization": "Readium Foundation",
"url": "http://github.com/readium/"
},
"license": "BSD-3-Clause",
"licenses": [
{
"type": "BSD-3-Clause",
"url": "http://opensource.org/licenses/BSD-3-Clause"
}
],
"bugs": {
"url": "https://github.com/readium/r2-navigator-js/issues"
},
"homepage": "https://github.com/readium/r2-navigator-js",
"dependencies": {
"@flatten-js/core": "^1.6.2",
"@flatten-js/polygon-offset": "^1.1.4",
"@xmldom/xmldom": "^0.9.5",
"css.escape": "^1.5.1",
"cssesc": "^3.0.0",
"debounce": "^2.2.0",
"debug": "^4.3.7",
"express": "^4.21.1",
"moment": "^2.30.1",
"r2-lcp-js": "^1.0.41",
"r2-shared-js": "^1.0.77",
"r2-streamer-js": "^1.0.48",
"r2-utils-js": "^1.0.39",
"request": "^2.88.2",
"sentence-splitter": "^5.0.0",
"ta-json-x": "^2.5.3",
"tabbable": "^6.2.0",
"tslib": "^2.8.0",
"urijs": "^1.19.11"
},
"devDependencies": {
"@medv/finder": "^3.2.0",
"@types/debug": "^4.1.12",
"@types/express": "^5.0.0",
"@types/node": "^20.17.3",
"@types/request": "^2.48.12",
"@types/request-promise-native": "^1.0.21",
"@types/urijs": "^1.19.25",
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/parser": "^8.12.2",
"cpy-cli": "^5.0.0",
"cross-env": "^7.0.3",
"cson": "^8.4.0",
"eclint": "^2.8.1",
"electron": "^33.0.2",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"filehound": "^1.17.6",
"git-rev-sync": "^3.0.2",
"json": "^11.0.0",
"mkdirp": "^3.0.1",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"typescript": "^5.6.3"
},
"files": [
"LICENSE",
"README.md",
"CHANGELOG.md",
"docs",
"dist"
],
"scripts": {
"postinstall": "node -e \"try{const fs = require('fs');let s = fs.readFileSync('node_modules/cpy/index.js', { encoding: 'utf8' });s = s.replace(/options, onProgress:/, 'options, cwd: null, onProgress:');fs.writeFileSync('node_modules/cpy/index.js', s, { encoding: 'utf8' });}catch(e){console.log(e)}\"",
"cson2json": "sed -E \"s/#ECMASCRIPT#/es5/g\" package-scripts-build.cson > tmp-build.cson && sed -E \"s/#ECMASCRIPT#/es6-es2015/g\" package-scripts-build.cson >> tmp-build.cson && sed -E \"s/#ECMASCRIPT#/es7-es2016/g\" package-scripts-build.cson >> tmp-build.cson && sed -E \"s/#ECMASCRIPT#/es8-es2017/g\" package-scripts-build.cson >> tmp-build.cson && json -I -f package.json -e \"this.scripts=$(cat package-scripts.cson tmp-build.cson | node node_modules/.bin/cson2json)\" && rimraf tmp-build.cson",
"electron-renderer:all": "cpy \"./ReadiumCSS/\" \"../dist/\" --cwd=\"./misc\"",
"copydist": "cpy \"./dist/\" \"../r2-testapp-js/node_modules/r2-navigator-js/\" --cwd=\"./\" && cpy \"./dist/\" \"../readium-desktop/node_modules/r2-navigator-js/\" --cwd=\"./\"",
"quick-build-dist": "npm run transpile:typescript:es8-es2017+afterdist && npm run copydist",
"_pregitdist": "npm run build:all",
"gitdist": "cd ../r2-navigator-js-dist/ && git checkout -B develop && (git pull || echo \"pull\") && (git --no-pager status || echo status) && ((rimraf * && echo rimrafOK) || echo rimrafNOK) && cpy --flat \"../r2-navigator-js/package.json\" . && cpy --flat \"../r2-navigator-js/package-lock.json\" . && cpy --flat \"../r2-navigator-js/LICENSE\" . && cpy --flat \"../r2-navigator-js/README.md\" . && cpy \"./docs/\" \"../r2-navigator-js-dist/\" --cwd=\"../r2-navigator-js/\" && cpy \"./dist/\" \"../r2-navigator-js-dist/\" --cwd=\"../r2-navigator-js/\" && (git add * || echo add) && (git commit -a -m \"add new dist\" || echo commit) && (git push --set-upstream origin develop || echo push) && (git --no-pager status || echo status) && cd ../r2-navigator-js",
"prepare_": "npm run build:all && npm test",
"prepublish_": "npm run prepare_",
"typescript:imports": "node tools/typescript_relativize_path_mapping_imports.js",
"gitrev": "node tools/gitrev.js && cat dist/gitrev.json",
"afterdist": "npm run typescript:imports && npm run gitrev",
"prebuild": "npm run lint",
"build": "npm run transpile:typescript",
"postbuild": "npm run afterdist && npm run electron-renderer:es8-es2017",
"prebuild:all": "npm run lint",
"build:all": "npm run transpile:typescript:all",
"postbuild:all": "npm run afterdist && npm run electron-renderer:all",
"clean": "rimraf ./dist && mkdirp ./dist",
"lint": "npm run lint:all && npm run lint:typescript:full",
"lint:all": "eclint check \"**/*\" \"!**/package-lock.json\" \"!**/*.node\" \"!.git/**/*\" \"!node_modules*/**/*\" \"!dist/**/*\" \"!misc/**/*\" \"!.vscode/**/*\" \"!.history/**/*\" \"!**/.DS_Store\" \"!**/*.epub\" \"!**/*.cbz\" \"!**/*.jpg\" \"!**/*.jpeg\" \"!**/*.png\" \"!**/*.log\"",
"lint:typescript:full": "eslint \"src/**/*.ts\"",
"pretranspile:typescript": "npm run clean",
"transpile:typescript": "tsc --pretty -p \"./tsconfig.json\"",
"pretranspile:typescript:all": "npm run clean",
"_transpile:typescript:all": "npm run transpile:typescript:es5 && ...",
"transpile:typescript:all": "npm run transpile:typescript:es6-es2015 && npm run transpile:typescript:es7-es2016 && npm run transpile:typescript:es8-es2017",
"transpile:typescript:es8-es2017+afterdist": "npm run transpile:typescript:es8-es2017 && npm run afterdist && npm run electron-renderer:es8-es2017",
"transpile:typescript:single": "node tools/typescript_compile_single.js",
"posttranspile:typescript:single": "npm run afterdist && npm run electron-renderer:es8-es2017",
"prebuild:es5": "npm run lint && npm run clean",
"build:es5": "npm run transpile:typescript:es5",
"postbuild:es5": "npm run afterdist && npm run electron-renderer:es5",
"transpile:typescript:es5": "tsc --pretty -p \"./tsconfigs/tsconfig-es5-all.json\"",
"electron-renderer:es5": "cpy \"./ReadiumCSS/\" \"../dist/\" --cwd=\"./misc\"",
"prebuild:es6-es2015": "npm run lint && npm run clean",
"build:es6-es2015": "npm run transpile:typescript:es6-es2015",
"postbuild:es6-es2015": "npm run afterdist && npm run electron-renderer:es6-es2015",
"transpile:typescript:es6-es2015": "tsc --pretty -p \"./tsconfigs/tsconfig-es6-es2015-all.json\"",
"electron-renderer:es6-es2015": "cpy \"./ReadiumCSS/\" \"../dist/\" --cwd=\"./misc\"",
"prebuild:es7-es2016": "npm run lint && npm run clean",
"build:es7-es2016": "npm run transpile:typescript:es7-es2016",
"postbuild:es7-es2016": "npm run afterdist && npm run electron-renderer:es7-es2016",
"transpile:typescript:es7-es2016": "tsc --pretty -p \"./tsconfigs/tsconfig-es7-es2016-all.json\"",
"electron-renderer:es7-es2016": "cpy \"./ReadiumCSS/\" \"../dist/\" --cwd=\"./misc\"",
"prebuild:es8-es2017": "npm run lint && npm run clean",
"build:es8-es2017": "npm run transpile:typescript:es8-es2017",
"postbuild:es8-es2017": "npm run afterdist && npm run electron-renderer:es8-es2017",
"transpile:typescript:es8-es2017": "tsc --pretty -p \"./tsconfigs/tsconfig-es8-es2017-all.json\"",
"electron-renderer:es8-es2017": "cpy \"./ReadiumCSS/\" \"../dist/\" --cwd=\"./misc\""
},
"importSort": {
".ts": {
"parser": "typescript",
"style": "module"
}
}
}