forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
118 lines (118 loc) · 4.06 KB
/
package.json
File metadata and controls
118 lines (118 loc) · 4.06 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
{
"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 --ext js,vue .",
"lint:css": "stylelint \"static/**/*.css\" \"openlibrary/**/*.css\"",
"lint-fix": "npm run lint-fix:js && npm run lint-fix:css",
"lint-fix:js": "eslint --fix --ext js,vue .",
"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.24.7",
"@babel/preset-env": "^7.24.7",
"@ericblade/quagga2": "^1.7.4",
"@vitejs/plugin-legacy": "^6.0.0",
"@vitejs/plugin-vue": "^5.2.1",
"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.2",
"css-minimizer-webpack-plugin": "^7.0.4",
"datatables.net-dt": "1.13.11",
"details-polyfill": "1.2.0",
"diff": "4.0.2",
"eslint": "^8.49.0",
"eslint-plugin-no-jquery": "2.7.0",
"eslint-plugin-vue": "^9.32.0",
"flot": "0.8.3",
"isbn3": "1.1.1",
"jest": "^30.0.5",
"jest-environment-jsdom": "^30.0.5",
"jquery": "3.6.0",
"jquery-colorbox": "1.6.4",
"jquery-ui": "1.13.2",
"jquery-ui-touch-punch": "0.2.3",
"lit": "^3.2.1",
"lodash": "4.17.21",
"lucene-query-parser": "1.2.0",
"mini-css-extract-plugin": "^2.9.2",
"prettier": "^3.5.3",
"promise-polyfill": "8.3.0",
"regenerator-runtime": "^0.14.1",
"sinon": "21.0.1",
"slick-carousel": "1.6.0",
"style-loader": "^4.0.0",
"stylelint": "^16.22.0",
"stylelint-declaration-strict-value": "1.10.11",
"stylelint-prettier": "^5.0.3",
"svgo": "2.3.1",
"tesseract.js": "4.1.1",
"vite": "^6.0.7",
"vue": "^3.5.13",
"vue-async-computed": "^4.0.1",
"vue-multiselect": "^3.1.0",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"workbox-webpack-plugin": "^7.3.0"
},
"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
},
"dependencies": {},
"overrides": {
"@ericblade/quagga2": {
"form-data": "4.0.4",
"qs": "6.5.3"
}
}
}