-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
138 lines (138 loc) · 6.4 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
{
"name": "r2-lcp-js",
"version": "1.0.41",
"description": "Readium 2 LCP bits for NodeJS (TypeScript)",
"keywords": [
"readium",
"readium2",
"LCP",
"EPUB",
"TypeScript",
"JavaScript",
"ES5",
"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-lcp-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-lcp-js/issues"
},
"homepage": "https://github.com/readium/r2-lcp-js",
"dependencies": {
"bindings": "^1.5.0",
"debug": "^4.3.7",
"moment": "^2.30.1",
"r2-utils-js": "^1.0.39",
"request": "^2.88.2",
"ta-json-x": "^2.5.3",
"tslib": "^2.7.0",
"urijs": "^1.19.11"
},
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/node": "^20.16.5",
"@types/request": "^2.48.12",
"@types/request-promise-native": "^1.0.21",
"@types/urijs": "^1.19.25",
"@typescript-eslint/eslint-plugin": "^8.6.0",
"@typescript-eslint/parser": "^8.6.0",
"cpy-cli": "^5.0.0",
"cross-env": "^7.0.3",
"cson": "^8.4.0",
"eclint": "^2.8.1",
"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.2"
},
"files": [
"LICENSE",
"README.md",
"CHANGELOG.md",
"docs",
"dist"
],
"scripts": {
"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",
"copydist": "cpy \"./dist/\" \"../r2-shared-js/node_modules/r2-lcp-js/\" --cwd=\"./\" && cpy \"./dist/\" \"../r2-streamer-js/node_modules/r2-lcp-js/\" --cwd=\"./\" && cpy \"./dist/\" \"../r2-navigator-js/node_modules/r2-lcp-js/\" --cwd=\"./\" && cpy \"./dist/\" \"../r2-testapp-js/node_modules/r2-lcp-js/\" --cwd=\"./\" && cpy \"./dist/\" \"../readium-desktop/node_modules/r2-lcp-js/\" --cwd=\"./\"",
"quick-build-dist": "npm run transpile:typescript:es8-es2017+afterdist && npm run copydist",
"_pregitdist": "npm run build:all",
"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 --flat \"../r2-lcp-js/package.json\" . && cpy --flat \"../r2-lcp-js/package-lock.json\" . && cpy --flat \"../r2-lcp-js/LICENSE\" . && cpy --flat \"../r2-lcp-js/README.md\" . && cpy \"./docs/\" \"../r2-lcp-js-dist/\" --cwd=\"../r2-lcp-js/\" && cpy \"./dist/\" \"../r2-lcp-js-dist/\" --cwd=\"../r2-lcp-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-lcp-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",
"prebuild:all": "npm run lint",
"build:all": "npm run transpile:typescript:all",
"postbuild:all": "npm run afterdist",
"clean": "rimraf ./dist && mkdirp ./dist",
"lint": "npm run lint:all && npm run lint:typescript:full",
"lint:all": "eclint check \"**/*\" \"!**/*.node\" \"!.git/**/*\" \"!node_modules*/**/*\" \"!dist/**/*\" \"!misc/**/*\" \"!now/**/*\" \"!.vscode/**/*\" \"!.history/**/*\" \"!**/.DS_Store\" \"!**/*.epub\" \"!**/*.cbz\" \"!**/*.jpg\" \"!**/*.jpeg\" \"!**/*.png\" \"!**/*.log\" \"!**/*.flox/**/*\"",
"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 && 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",
"transpile:typescript:single": "node tools/typescript_compile_single.js",
"posttranspile:typescript:single": "npm run afterdist",
"prebuild:es5": "npm run lint && npm run clean",
"build:es5": "npm run transpile:typescript:es5",
"postbuild:es5": "npm run afterdist",
"transpile:typescript:es5": "tsc --pretty -p \"./tsconfigs/tsconfig-es5-all.json\"",
"prebuild:es6-es2015": "npm run lint && npm run clean",
"build:es6-es2015": "npm run transpile:typescript:es6-es2015",
"postbuild:es6-es2015": "npm run afterdist",
"transpile:typescript:es6-es2015": "tsc --pretty -p \"./tsconfigs/tsconfig-es6-es2015-all.json\"",
"prebuild:es7-es2016": "npm run lint && npm run clean",
"build:es7-es2016": "npm run transpile:typescript:es7-es2016",
"postbuild:es7-es2016": "npm run afterdist",
"transpile:typescript:es7-es2016": "tsc --pretty -p \"./tsconfigs/tsconfig-es7-es2016-all.json\"",
"prebuild:es8-es2017": "npm run lint && npm run clean",
"build:es8-es2017": "npm run transpile:typescript:es8-es2017",
"postbuild:es8-es2017": "npm run afterdist",
"transpile:typescript:es8-es2017": "tsc --pretty -p \"./tsconfigs/tsconfig-es8-es2017-all.json\""
},
"importSort": {
".ts": {
"parser": "typescript",
"style": "module"
}
}
}