UNPKG

6.67 kBJSONView Raw
1{
2 "name": "r2-lcp-js",
3 "version": "1.0.36",
4 "description": "Readium 2 LCP bits for NodeJS (TypeScript)",
5 "keywords": [
6 "readium",
7 "readium2",
8 "LCP",
9 "EPUB",
10 "TypeScript",
11 "JavaScript",
12 "ES5",
13 "ES6",
14 "ECMAScript 2015",
15 "ECMAScript 6",
16 "ES7",
17 "ECMAScript 2016",
18 "ECMAScript 7",
19 "ES8",
20 "ECMAScript 2017",
21 "ECMAScript 8"
22 ],
23 "engines": {
24 "node": ">=16",
25 "npm": ">=6",
26 "yarn": ">=1.0"
27 },
28 "repository": {
29 "type": "git",
30 "url": "git+https://github.com/readium/r2-lcp-js.git"
31 },
32 "author": {
33 "name": "Readium Foundation",
34 "organization": "Readium Foundation",
35 "url": "http://github.com/readium/"
36 },
37 "license": "BSD-3-Clause",
38 "licenses": [
39 {
40 "type": "BSD-3-Clause",
41 "url": "http://opensource.org/licenses/BSD-3-Clause"
42 }
43 ],
44 "bugs": {
45 "url": "https://github.com/readium/r2-lcp-js/issues"
46 },
47 "homepage": "https://github.com/readium/r2-lcp-js",
48 "dependencies": {
49 "bindings": "^1.5.0",
50 "debug": "^4.3.4",
51 "moment": "^2.29.4",
52 "r2-utils-js": "^1.0.32",
53 "request": "^2.88.2",
54 "request-promise-native": "^1.0.9",
55 "ta-json-x": "^2.5.3",
56 "tslib": "^2.4.1",
57 "urijs": "^1.19.11"
58 },
59 "devDependencies": {
60 "@types/debug": "^4.1.7",
61 "@types/node": "^16.18.3",
62 "@types/request": "^2.48.8",
63 "@types/request-promise-native": "^1.0.18",
64 "@types/urijs": "^1.19.19",
65 "@typescript-eslint/eslint-plugin": "^5.43.0",
66 "@typescript-eslint/parser": "^5.43.0",
67 "cpy-cli": "^4.2.0",
68 "cross-env": "^7.0.3",
69 "cson": "^7.20.0",
70 "eclint": "^2.8.1",
71 "eslint": "^8.27.0",
72 "eslint-config-prettier": "^8.5.0",
73 "eslint-plugin-prettier": "^4.2.1",
74 "eslint-plugin-unused-imports": "^2.0.0",
75 "filehound": "^1.17.6",
76 "git-rev-sync": "^3.0.2",
77 "json": "^11.0.0",
78 "mkdirp": "^1.0.4",
79 "rimraf": "^3.0.2",
80 "typescript": "^4.9.3"
81 },
82 "files": [
83 "LICENSE",
84 "README.md",
85 "CHANGELOG.md",
86 "docs/**/*",
87 "dist/**/*"
88 ],
89 "scripts": {
90 "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-*.cson",
91 "copydist": "cpy \"./dist/**/*\" ../r2-shared-js/node_modules/r2-lcp-js/ --cwd=./ --parents --no-dir && cpy \"./dist/**/*\" ../r2-streamer-js/node_modules/r2-lcp-js/ --cwd=./ --parents --no-dir && cpy \"./dist/**/*\" ../r2-navigator-js/node_modules/r2-lcp-js/ --cwd=./ --parents --no-dir && cpy \"./dist/**/*\" ../r2-testapp-js/node_modules/r2-lcp-js/ --cwd=./ --parents --no-dir && cpy \"./dist/**/*\" ../readium-desktop/node_modules/r2-lcp-js/ --cwd=./ --parents --no-dir",
92 "quick-build-dist": "npm run transpile:typescript:es8-es2017+afterdist && npm run copydist",
93 "_pregitdist": "npm run build:all",
94 "gitdist": "cd ../r2-lcp-js-dist/ && git checkout -B develop && (git pull || echo \"pull\") && (git --no-pager status || echo status) && ((rimraf \"*\" && echo rimrafOK) || echo rimrafNOK) && cpy ../r2-lcp-js/package.json . && cpy ../r2-lcp-js/package-lock.json . && cpy ../r2-lcp-js/LICENSE . && cpy ../r2-lcp-js/README.md . && cpy \"./docs/**/*\" ../r2-lcp-js-dist/ --cwd=../r2-lcp-js/ --parents --no-dir && cpy \"./dist/**/*\" ../r2-lcp-js-dist/ --cwd=../r2-lcp-js/ --parents --no-dir && (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-lcp-js",
95 "prepare_": "npm run build:all && npm test",
96 "prepublish_": "npm run prepare_",
97 "typescript:imports": "node tools/typescript_relativize_path_mapping_imports.js",
98 "gitrev": "node tools/gitrev.js && cat dist/gitrev.json",
99 "afterdist": "npm run typescript:imports && npm run gitrev",
100 "prebuild": "npm run lint",
101 "build": "npm run transpile:typescript",
102 "postbuild": "npm run afterdist",
103 "prebuild:all": "npm run lint",
104 "build:all": "npm run transpile:typescript:all",
105 "postbuild:all": "npm run afterdist",
106 "clean": "rimraf ./dist && mkdirp ./dist",
107 "lint": "npm run lint:all && npm run lint:typescript:full",
108 "lint:all": "eclint check \"**/*\" \"!**/*.node\" \"!.git/**/*\" \"!node_modules*/**/*\" \"!dist/**/*\" \"!misc/**/*\" \"!now/**/*\" \"!.vscode/**/*\" \"!.history/**/*\" \"!**/.DS_Store\" \"!**/*.epub\" \"!**/*.cbz\" \"!**/*.jpg\" \"!**/*.jpeg\" \"!**/*.png\" \"!**/*.log\"",
109 "lint:typescript:full": "eslint \"./src/**/*.ts\"",
110 "pretranspile:typescript": "npm run clean",
111 "transpile:typescript": "tsc --pretty -p \"./tsconfig.json\"",
112 "pretranspile:typescript:all": "npm run clean",
113 "transpile:typescript:all": "npm run transpile:typescript:es5 && npm run transpile:typescript:es6-es2015 && npm run transpile:typescript:es7-es2016 && npm run transpile:typescript:es8-es2017",
114 "transpile:typescript:es8-es2017+afterdist": "npm run transpile:typescript:es8-es2017 && npm run afterdist",
115 "transpile:typescript:single": "node tools/typescript_compile_single.js",
116 "posttranspile:typescript:single": "npm run afterdist",
117 "prebuild:es5": "npm run lint && npm run clean",
118 "build:es5": "npm run transpile:typescript:es5",
119 "postbuild:es5": "npm run afterdist",
120 "transpile:typescript:es5": "tsc --pretty -p \"./tsconfigs/tsconfig-es5-all.json\"",
121 "prebuild:es6-es2015": "npm run lint && npm run clean",
122 "build:es6-es2015": "npm run transpile:typescript:es6-es2015",
123 "postbuild:es6-es2015": "npm run afterdist",
124 "transpile:typescript:es6-es2015": "tsc --pretty -p \"./tsconfigs/tsconfig-es6-es2015-all.json\"",
125 "prebuild:es7-es2016": "npm run lint && npm run clean",
126 "build:es7-es2016": "npm run transpile:typescript:es7-es2016",
127 "postbuild:es7-es2016": "npm run afterdist",
128 "transpile:typescript:es7-es2016": "tsc --pretty -p \"./tsconfigs/tsconfig-es7-es2016-all.json\"",
129 "prebuild:es8-es2017": "npm run lint && npm run clean",
130 "build:es8-es2017": "npm run transpile:typescript:es8-es2017",
131 "postbuild:es8-es2017": "npm run afterdist",
132 "transpile:typescript:es8-es2017": "tsc --pretty -p \"./tsconfigs/tsconfig-es8-es2017-all.json\""
133 },
134 "importSort": {
135 ".ts": {
136 "parser": "typescript",
137 "style": "module"
138 }
139 }
140}