Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
177 lines (177 loc) · 7.68 KB
/
Copy pathpackage.json
File metadata and controls
177 lines (177 loc) · 7.68 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
166
167
168
169
170
171
172
173
174
175
176
177
{
"name": "zotero-web-library",
"version": "1.8.3",
"description": "Web library from zotero.org",
"main": "src/js/zotero-web-library.js",
"files": [
"src/js",
"src/scss",
"build"
],
"type": "module",
"browserslist": [
"firefox >= 68",
"chrome >= 67",
"edge >= 15",
"safari >= 11",
"last 2 versions",
"not dead"
],
"scripts": {
"serve": "node scripts/server.mjs",
"prepack": "run-s clean build",
"postpack": "rimraf build",
"prebuild": "npm run clean -s && mkdir -p build/static/web-library/ && mkdir -p build/",
"clean": "rimraf build",
"clean:data": "rimraf data",
"clean:static": "rimraf tmp src/static/fonts src/static/note-editor src/static/reader src/static/pdf-worker src/static/citeproc.js",
"clean:depbuild": "rimraf modules/reader/build modules/reader/locales modules/pdf-worker/build modules/note-editor/build modules/note-editor/locales",
"clean:all": "run-p clean clean:data clean:static clean:depbuild",
"purge:submodules": "rimraf modules && git submodule update --init --recursive",
"build": "node scripts/build.mjs",
"build:tests": "NODE_ENV=testing run-s \"build:prepare\" \"build:all\" \"build:postprocess\"",
"build:all": "run-p 'build:js -s' 'build:scss -s' 'build:html -s' 'build:static -s'",
"build:js": "mkdir -p build/static/web-library && rollup -c",
"build:scss": "for f in src/scss/*.scss; do sass --no-source-map $f build/static/web-library/`basename $f .scss`.css; done;",
"build:html": "mkdir -p build/ && cp -aL src/html/* build/",
"build:styles-json": "node scripts/build-styles-json.mjs",
"build:fetch-or-build-modules": "node scripts/fetch-or-build-modules.mjs",
"build:fonts": "node scripts/fetch-fonts.mjs",
"build:locale": "node scripts/collect-locale.mjs",
"build:version": "node scripts/store-version.mjs",
"build:static": "mkdir -p build/static/web-library/ && cp -aL src/static/* build/static/web-library/",
"build:postprocess": "postcss build/static/web-library/zotero-web-library.css --no-map -r",
"build:check-icons": "node scripts/check-icons.mjs",
"build:citeproc-js": "node scripts/prepare-citeproc-js.mjs",
"build:prepare": "run-p \"build:version\" \"build:locale\" \"build:fetch-or-build-modules\" \"build:fonts\" \"build:styles-json\" \"build:check-icons\" \"build:citeproc-js\"",
"devel": "run-p 'devel:js -s' 'devel:scss -s' 'devel:html -s' 'devel:static -s'",
"devel:js": "rollup -c -w",
"devel:scss": "nodemon -q -w src/scss --ext 'scss' --exec 'npm run devbuild:scss'",
"devel:html": "nodemon -q -w src/html -w config --ext '.' --exec 'npm run build:html'",
"devel:static": "nodemon -q -w src/static --ext '.' --exec 'npm run build:static'",
"devbuild:scss": "run-s devbuild:scss:build devbuild:scss:post",
"devbuild:scss:build": "for f in src/scss/*.scss; do sass --embed-source-map $f build/static/web-library/`basename $f .scss`.css; done;",
"devbuild:scss:post": "postcss build/static/web-library/*.css -r",
"start:all": "run-p \"serve -s {@}\" \"devel -s {@}\"",
"start": "node scripts/start.mjs",
"stylelint": "stylelint \"src/scss/**/*.scss\"",
"eslint": "eslint .",
"lint": "run-p -c stylelint eslint",
"watch:stylelint": "nodemon -q -w src/scss --ext 'scss' --exec 'npm run stylelint'",
"watch:eslint": "nodemon -q -w src/js --ext 'js,jsx' --exec 'npm run eslint'",
"watch:lint": "run-p 'watch:stylelint -s' 'watch:eslint -s'",
"jest:watch": "jest --watch",
"test": "run-s \"build:tests\" \"test:all\"",
"test:all": "concurrently --group --prefixColors auto --prefix '[{name}]' -n JEST,PLAYWRIGHT \"npm:test:jest\" \"npm:test:playwright\"",
"test:jest": "jest --silent",
"test:playwright": "npx playwright install --with-deps && npx playwright test",
"test:playwright-docker": "docker run --rm -it -v \"$PWD:/work\" -w /work mcr.microsoft.com/playwright:v1.62.1-noble bash -lc \"npm ci && npx playwright install --with-deps && npx playwright test\"",
"test:update-snapshots": "playwright test --update-snapshots",
"test:update-snapshots-docker": "docker run --rm -it -v \"$PWD:/work\" -w /work mcr.microsoft.com/playwright:v1.62.1-noble bash -lc \"npm ci && npx playwright install --with-deps && npx playwright test --update-snapshots\"",
"fixed-state-server": "node scripts/fixed-state-server.mjs",
"add-license": "node scripts/add-license.mjs",
"compile-zotero-icons": "node scripts/compile-zotero-icons.mjs"
},
"keywords": [
"Zotero"
],
"license": "AGPL-3.0",
"dependencies": {
"@babel/runtime": "8.0.0",
"@babel/runtime-corejs3": "8.0.0",
"@floating-ui/react-dom": "2.1.9",
"@reduxjs/toolkit": "2.12.0",
"classnames": "2.5.1",
"copy-to-clipboard": "4.0.2",
"core-js": "3.50.0",
"fast-deep-equal": "3.1.3",
"file-saver": "2.0.5",
"load-script": "2.0.0",
"memoize-one": "6.0.0",
"rdndmb-html5-to-touch": "9.0.0",
"react": "19.2.8",
"react-dnd": "16.0.1",
"react-dnd-html5-backend": "16.0.1",
"react-dnd-multi-backend": "9.0.0",
"react-dnd-touch-backend": "16.0.1",
"react-dom": "19.2.8",
"react-modal": "3.16.3",
"react-redux": "9.3.0",
"react-transition-group": "4.4.5",
"react-virtualized-auto-sizer": "2.0.3",
"react-window": "2.3.0",
"react-window-infinite-loader": "2.0.1",
"redux": "5.0.1",
"redux-async-queue": "1.0.0",
"redux-thunk": "3.1.0",
"use-debounce": "10.1.1",
"zotero-api-client": "0.51.0"
},
"devDependencies": {
"@babel/core": "8.0.1",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-syntax-import-attributes": "7.29.7",
"@babel/plugin-transform-async-to-generator": "8.0.1",
"@babel/plugin-transform-runtime": "8.0.1",
"@babel/preset-env": "8.0.2",
"@babel/preset-react": "8.0.1",
"@eslint/js": "9.39.5",
"@playwright/test": "1.62.1",
"@rollup/plugin-alias": "6.0.0",
"@rollup/plugin-babel": "7.1.0",
"@rollup/plugin-commonjs": "29.0.3",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "16.0.3",
"@rollup/plugin-replace": "6.0.3",
"@rollup/plugin-terser": "1.0.0",
"@rollup/plugin-virtual": "3.0.2",
"@rollup/plugin-wasm": "6.2.2",
"@testing-library/dom": "10.4.1",
"@testing-library/jest-dom": "7.0.1",
"@testing-library/react": "16.3.3",
"@testing-library/user-event": "14.6.7",
"@welldone-software/why-did-you-render": "10.0.1",
"autoprefixer": "10.5.4",
"babel-jest": "30.5.1",
"babel-plugin-add-module-exports": "1.0.4",
"babel-plugin-polyfill-corejs3": "1.0.0",
"babel-plugin-transform-import-meta": "3.0.0",
"citeproc": "2.4.63",
"concurrently": "10.0.5",
"eslint": "9.39.5",
"eslint-plugin-jest-dom": "5.10.1",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "7.1.1",
"fflate": "0.8.3",
"glob": "13.0.6",
"globals": "17.12.0",
"http-proxy": "1.18.1",
"jest": "30.5.1",
"jest-environment-jsdom": "30.5.1",
"msw": "2.15.0",
"node-fetch": "3.3.2",
"nodemon": "3.1.14",
"npm-run-all2": "9.0.3",
"playwright": "1.62.1",
"postcss": "8.5.27",
"postcss-cli": "11.0.1",
"ps-tree": "1.2.0",
"rimraf": "6.1.3",
"rollup": "4.63.1",
"rollup-plugin-sizes": "1.1.0",
"rollup-plugin-typescript2": "0.37.0",
"rollup-plugin-visualizer": "7.1.1",
"rollup-plugin-web-worker-loader": "1.7.0",
"sass": "1.103.1",
"serve-static": "2.2.1",
"stylelint": "17.14.1",
"stylelint-config-recommended-scss": "17.0.1",
"stylelint-config-standard": "40.0.0",
"stylelint-config-standard-scss": "17.0.0",
"stylelint-scss": "7.2.0",
"terser": "5.51.2"
},
"overrides": {
"nwsapi": "2.2.24"
}
}