forked from internetarchive/bookreader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
149 lines (149 loc) · 7.42 KB
/
Copy pathpackage.json
File metadata and controls
149 lines (149 loc) · 7.42 KB
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
{
"name": "@internetarchive/bookreader",
"version": "5.0.0-116",
"description": "The Internet Archive BookReader.",
"type": "module",
"files": [
"BookReader/",
"src/",
"jsconfig.json"
],
"repository": {
"type": "git",
"url": "git+https://github.com/internetarchive/bookreader.git"
},
"publishConfig": {
"access": "public"
},
"module": "src/ia-bookreader/ia-bookreader.js",
"keywords": [
"online",
"bookreader",
"interface",
"ebooks",
"internet archive"
],
"author": "Internet Archive",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/internetarchive/bookreader/issues"
},
"homepage": "https://github.com/internetarchive/bookreader#readme",
"private": false,
"dependencies": {
"@internetarchive/bergamot-translator": "^0.4.9-ia.1",
"@internetarchive/ia-activity-indicator": "1.0.0",
"@internetarchive/ia-item-navigator": "2.2.3",
"@internetarchive/icon-bookmark": "1.4.1",
"@internetarchive/icon-close": "1.4.1",
"@internetarchive/icon-dl": "1.4.1",
"@internetarchive/icon-edit-pencil": "1.4.1",
"@internetarchive/icon-ellipses": "1.4.1",
"@internetarchive/icon-ia-logo": "1.4.1",
"@internetarchive/icon-magnify-minus": "1.4.1",
"@internetarchive/icon-magnify-plus": "1.4.1",
"@internetarchive/icon-search": "1.4.1",
"@internetarchive/icon-share": "1.4.1",
"@internetarchive/icon-toc": "1.4.1",
"@internetarchive/icon-visual-adjustment": "1.4.1",
"@internetarchive/modal-manager": "2.0.6",
"@internetarchive/shared-resize-observer": "0.2.0",
"interactjs": "^1.10.18",
"iso-language-codes": "2.0.0",
"jquery": "3.6.1",
"jquery-colorbox": "1.6.4",
"jquery-ui": "1.12.1",
"jquery-ui-touch-punch": "0.2.3",
"jquery.browser": "0.1.0",
"lit": "2.8.0",
"soundmanager2": "2.97.20170602"
},
"devDependencies": {
"@babel/core": "7.29.7",
"@babel/eslint-parser": "7.29.7",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-decorators": "7.29.7",
"@babel/preset-env": "7.29.7",
"@iiif/presentation-2": "1.0.4",
"@iiif/presentation-3": "2.2.3",
"@open-wc/testing-helpers": "3.0.1",
"@types/jest": "30.0.0",
"@webcomponents/webcomponentsjs": "^2.6.0",
"babel-loader": "10.1.1",
"concurrently": "10.0.3",
"core-js": "3.49.0",
"cpx2": "9.0.0",
"eslint": "7.32.0",
"eslint-plugin-no-jquery": "^2.7.0",
"eslint-plugin-testcafe": "0.2.1",
"http-server": "14.1.1",
"hypothesis": "^1.1627.0",
"jest": "30.4.2",
"jest-environment-jsdom": "30.4.1",
"live-server": "1.2.2",
"regenerator-runtime": "0.14.1",
"sass": "1.100.0",
"sinon": "22.0.0",
"svgo": "4.0.1",
"testcafe": "3.7.4",
"testcafe-browser-provider-browserstack": "1.15.2",
"webpack": "5.107.2",
"webpack-cli": "7.0.3"
},
"jest": {
"testEnvironment": "jsdom",
"transformIgnorePatterns": [
"node_modules/(?!(sinon|lit-html|lit-element|lit|@lit|@lit-labs|@internetarchive|@open-wc)/)"
],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/$1"
},
"setupFiles": [
"./src/jquery-wrapper.js",
"./tests/jest/setup.js"
],
"roots": [
"<rootDir>/src/",
"<rootDir>/tests/jest/"
]
},
"scripts": {
"preversion": "node scripts/preversion.js",
"version": "node scripts/version.js",
"postversion": "node scripts/postversion.js",
"build": "npm run clean && npx concurrently --group npm:build-js npm:build-css npm:build-assets npm:build-hypothesis npm:build-bergamot",
"build-assets": "npx cpx \"src/assets/**/*\" BookReader && npx svgo -f BookReader/icons && npx svgo -f BookReader/images",
"build-assets:watch": "npx cpx --watch --verbose \"src/assets/**/*\" BookReader",
"build-bergamot": "npx cpx \"node_modules/@internetarchive/bergamot-translator/worker/*\" BookReader/",
"build-bergamot:watch": "npx cpx --watch \"node_modules/@internetarchive/bergamot-translator/worker/*\" BookReader/",
"build-hypothesis": "npx cpx \"node_modules/hypothesis/**/*\" BookReader/hypothesis",
"build-hypothesis:watch": "npx cpx --watch --verbose \"node_modules/hypothesis/**/*\" BookReader/hypothesis",
"build-js": "npx webpack",
"build-js:watch": "npx webpack --mode=development --watch",
"build-css": "npx sass --silence-deprecation=import --no-source-map ./src/css/BookReader.scss ./BookReader/BookReader.css",
"build-css:watch": "npx sass --silence-deprecation=import --watch --no-source-map ./src/css/BookReader.scss ./BookReader/BookReader.css",
"clean": "rm -r BookReader/ || true",
"lint": "npx eslint src/ tests/ *.js *.cjs",
"lint:fix": "npx eslint --fix src/ tests/ *.js *.cjs",
"serve": "npx http-server . --port=8000",
"serve-live": "node scripts/live-server.js",
"serve-dev": "env NODE_ENV='development' npm run build-css && env NODE_ENV='development' npx concurrently --kill-others npm:serve-live npm:build-*:watch",
"test": "npx jest --coverage --colors",
"test:watch": "npx jest --watch",
"test:e2e": "npm run build && npx testcafe",
"test:e2e:dev": "npx testcafe --live --dev",
"DOCS:update:test-deps": "If CI succeeds, these should be good to update",
"update:test-deps": "npm i @babel/eslint-parser@latest @open-wc/testing-helpers@latest @types/jest@latest eslint@7 eslint-plugin-no-jquery@latest eslint-plugin-testcafe@latest jest@latest jest-environment-jsdom@latest sinon@latest testcafe@latest",
"update:test-deps:test": "npm run lint && npm run test && npm run test:e2e",
"DOCS:update:build-deps": "These can cause strange changes, so do an npm run build + check file size (git diff --stat), and check the site is as expected",
"update:build-deps": "npm i @babel/core@latest @babel/preset-env@latest @babel/plugin-proposal-class-properties@latest @babel/plugin-proposal-decorators@latest babel-loader@latest core-js@latest regenerator-runtime@latest sass@latest svgo@latest webpack@latest webpack-cli@latest",
"update:build-deps:test": "npm run build",
"DOCS:update:dev-deps": "Packages used for development",
"update:dev-deps": "npm i @iiif/presentation-2@latest @iiif/presentation-3@latest concurrently@latest cpx2@latest http-server@latest hypothesis@latest live-server@latest testcafe-browser-provider-browserstack@latest",
"DOCS:update:runtime-deps": "Core runtime dependencies; do an npm run build + visual check after updating",
"update:runtime-deps": "npm i @webcomponents/webcomponentsjs@latest interactjs@latest iso-language-codes@latest jquery@latest jquery-colorbox@latest jquery-ui@latest jquery-ui-touch-punch@latest jquery.browser@latest lit@latest soundmanager2@latest",
"update:runtime-deps:test": "npm run build",
"DOCS:update:ia-deps": "Packages by @internetarchive",
"update:ia-deps": "npm i @internetarchive/bergamot-translator@latest @internetarchive/ia-activity-indicator@latest @internetarchive/ia-item-navigator@latest @internetarchive/icon-bookmark@latest @internetarchive/icon-close@latest @internetarchive/icon-dl@latest @internetarchive/icon-edit-pencil@latest @internetarchive/icon-ellipses@latest @internetarchive/icon-ia-logo@latest @internetarchive/icon-magnify-minus@latest @internetarchive/icon-magnify-plus@latest @internetarchive/icon-search@latest @internetarchive/icon-share@latest @internetarchive/icon-toc@latest @internetarchive/icon-visual-adjustment@latest @internetarchive/modal-manager@latest @internetarchive/shared-resize-observer@latest"
}
}