-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathpackage.json
More file actions
134 lines (134 loc) · 4.49 KB
/
package.json
File metadata and controls
134 lines (134 loc) · 4.49 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
{
"name": "openlibrary",
"version": "1.0.0",
"repository": "github:internetarchive/openlibrary",
"license": "AGPL-3.0",
"scripts": {
"watch": "env NODE_ENV=development npx webpack --config webpack.config.js --config webpack.config.css.js --watch --progress",
"watch-polling": "env FORCE_POLLING=true npm run watch",
"watch:js": "env NODE_ENV=development npx webpack --watch --progress",
"watch:css": "env NODE_ENV=development npx webpack --config webpack.config.css.js --watch --progress",
"watch:lit-components": "BUILD_DIR=static/build/lit-components npx vite build -c openlibrary/components/vite-lit.config.mjs --watch",
"build-assets": "make js && make css && make components && make lit-components",
"build-assets:css": "make css",
"build-assets:components": "make components",
"build-assets:js": "make js",
"build-assets:lit-components": "make lit-components",
"svg-min": "svgo --config config/svgo.config.js static/images/**/*.svg static/images/*.svg",
"lint": "npx concurrently --group npm:lint:js npm:lint:css",
"lint:js": "eslint .",
"lint:css": "stylelint \"static/**/*.css\" \"openlibrary/**/*.css\"",
"lint-fix": "npm run lint-fix:js && npm run lint-fix:css",
"lint-fix:js": "eslint --fix .",
"lint-fix:css": "stylelint --fix \"static/**/*.css\" \"openlibrary/**/*.css\"",
"serve": "node openlibrary/components/dev/serve-component.js && cd openlibrary/components/dev && vite",
"test": "npm run test:js && bundlesize",
"test:js": "jest",
"storybook": "cd stories && npm install --no-audit && npx storybook dev -p 6006",
"build-storybook": "cd stories && npm install --no-audit && npx storybook build"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/eslint-parser": "^7.28.6",
"@babel/preset-env": "^7.29.3",
"@ericblade/quagga2": "^1.7.4",
"@eslint/js": "^9.39.4",
"@tiptap/core": "^3.20.4",
"@tiptap/extension-image": "^3.22.1",
"@tiptap/extension-placeholder": "^3.20.4",
"@tiptap/pm": "^3.20.4",
"@tiptap/starter-kit": "^3.20.4",
"@vitejs/plugin-legacy": "^8.0.1",
"@vitejs/plugin-vue": "^6.0.6",
"babel-loader": "^9.1.3",
"bundlesize2": "^0.0.35",
"chart.js": "2.9.4",
"chartjs-plugin-datalabels": "0.7.0",
"concurrently": "^7.6.0",
"core-js": "^3.37.1",
"css-loader": "^7.1.4",
"css-minimizer-webpack-plugin": "^8.0.0",
"datatables.net-dt": "1.13.11",
"details-polyfill": "1.2.0",
"diff": "^4.0.4",
"eslint": "^9.39.4",
"eslint-plugin-no-jquery": "^3.1.1",
"eslint-plugin-vue": "^9.32.0",
"flot": "0.8.3",
"glob": "^7.2.3",
"globals": "^15.14.0",
"isbn3": "1.2.19",
"jest": "^30.4.2",
"jest-environment-jsdom": "^30.4.1",
"jquery": "3.7.1",
"jquery-colorbox": "1.6.4",
"jquery-ui": "1.14.2",
"jquery-ui-touch-punch": "0.2.3",
"lit": "^3.2.1",
"lodash": "4.18.1",
"lucene-query-parser": "1.2.0",
"mini-css-extract-plugin": "^2.10.2",
"prettier": "^3.5.3",
"promise-polyfill": "8.3.0",
"regenerator-runtime": "^0.14.1",
"sinon": "21.1.2",
"slick-carousel": "^1.6.0",
"style-loader": "^4.0.0",
"stylelint": "^16.26.1",
"stylelint-declaration-strict-value": "^1.11.1",
"stylelint-prettier": "^5.0.3",
"svgo": "4",
"tesseract.js": "^4.1.4",
"tiptap-markdown": "^0.9.0",
"vite": "^8.0.5",
"vue": "^3.5.34",
"vue-async-computed": "^4.0.1",
"vue-multiselect": "^3.5.0",
"webpack": "^5.106.2",
"webpack-cli": "^5.1.4",
"workbox-webpack-plugin": "^7.4.1"
},
"engines": {
"node": "^24.0.0"
},
"jest": {
"roots": [
"<rootDir>/openlibrary/plugins/openlibrary/js/",
"<rootDir>/tests/unit/js/"
],
"moduleNameMapper": {
"\\.css$": "<rootDir>/tests/unit/js/styleMock.js",
"sinon": "<rootDir>/node_modules/sinon/pkg/sinon.js"
},
"setupFiles": [
"<rootDir>/tests/unit/js/setup.js"
],
"testEnvironment": "jsdom",
"collectCoverageFrom": [
"openlibrary/plugins/openlibrary/js/**/*.js"
],
"coverageThreshold": {
"global": {
"branches": 14,
"functions": 11,
"lines": 14,
"statements": 14
}
},
"collectCoverage": false
},
"overrides": {
"@ericblade/quagga2": {
"form-data": "4.0.5",
"qs": "6.15.1"
}
},
"browserslist": [
"Chrome > 0 and last 3 years",
"Edge > 0 and last 3 years",
"Firefox > 0 and last 3 years",
"Safari >= 11.1",
"iOS >= 11.3",
"Android >= 5"
]
}