-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathpackage.json
More file actions
165 lines (165 loc) · 5.52 KB
/
Copy pathpackage.json
File metadata and controls
165 lines (165 loc) · 5.52 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"name": "openlibrary",
"version": "1.0.0",
"repository": "github:internetarchive/openlibrary",
"license": "AGPL-3.0",
"scripts": {
"watch": "npx concurrently --names js,css,components,lit --prefix-colors --kill-others npm:watch:js npm:watch:css npm:watch:components npm:watch:lit-components",
"watch-polling": "env FORCE_POLLING=true npm run watch",
"watch:js": "env NODE_ENV=development npx webpack --watch --progress",
"watch:css": "npx vite build -c vite-css.config.mjs --watch --mode development",
"watch:lit-components": "BUILD_DIR=static/build/lit-components npx vite build -c openlibrary/components/vite-lit.config.mjs --watch",
"watch:lit-manifest": "npx cem analyze --watch",
"watch:components": "mkdir -p static/build/components && BUILD_DIR=static/build/components npx vite build -c openlibrary/components/vite.config.mjs --watch",
"build-assets": "make js && make css && make components && make icons && make lit-components",
"build-assets:css": "make css",
"build-assets:components": "make components",
"build-assets:js": "make js",
"build-assets:icons": "make icons",
"build-assets:lit-components": "make lit-components",
"build-assets:lit-manifest": "npx cem analyze",
"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",
"pretest:js": "node scripts/build_icon_sprite.mjs",
"test:js": "jest",
"test:a11y": "jest openlibrary/components/__tests__/",
"test:e2e": "playwright test"
},
"devDependencies": {
"@axe-core/playwright": "^4.12.1",
"@babel/core": "^7.24.7",
"@babel/eslint-parser": "^7.28.6",
"@babel/preset-env": "^7.29.3",
"@custom-elements-manifest/analyzer": "^0.11.0",
"@ericblade/quagga2": "^1.7.4",
"@eslint/js": "^9.39.4",
"@internetarchive/elements": "^0.2.5",
"@playwright/test": "^1.60.0",
"@sentry/browser": "^10.60.0",
"@tiptap/core": "^3.20.4",
"@tiptap/extension-hard-break": "^3.26.0",
"@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-vue": "^6.0.6",
"babel-loader": "^10.0.0",
"bundlesize2": "^0.0.35",
"chart.js": "2.9.4",
"chartjs-plugin-datalabels": "0.7.0",
"concurrently": "^10.0.0",
"core-js": "^3.37.1",
"css-loader": "^7.1.4",
"datatables.net-dt": "1.13.11",
"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",
"globals": "^15.14.0",
"isbn3": "1.2.19",
"jest": "^30.4.2",
"jest-axe": "^10.0.0",
"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",
"prettier": "^3.5.3",
"prismjs": "^1.30.0",
"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>/openlibrary/components/__tests__/",
"<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"
],
"transform": {
"node_modules[\\\\/](lit|lit-html|lit-element|@lit)[\\\\/]": [
"babel-jest",
{
"babelrc": false,
"configFile": false,
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
}
],
"\\.[jt]sx?$": "babel-jest"
},
"transformIgnorePatterns": [
"node_modules[\\\\/](?!(lit|lit-html|lit-element|@lit)[\\\\/])"
],
"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.2"
}
},
"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"
],
"customElements": "openlibrary/components/lit/custom-elements.json"
}