-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathpackage.json
177 lines (177 loc) · 7.58 KB
/
package.json
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.6.0-rc.1",
"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 >= 79, safari >= 11, last 2 versions, not dead, not ie 11, not ie 10",
"scripts": {
"serve": "node scripts/server.cjs",
"prepack": "run-s clean build",
"postpack": "rimraf build",
"prebuild": "npm run clean -s && mkdir -p build/static/",
"clean": "rimraf build",
"clean:data": "rimraf data",
"clean:static": "rimraf tmp src/static/fonts src/static/note-editor src/static/pdf-reader src/static/pdf-worker",
"clean:all": "run-p clean clean:data clean:static",
"purge:submodules": "rimraf modules && git submodule update --init --recursive",
"build": "NODE_ENV=production npm run build:prepare && NODE_ENV=production npm run build:all && npm run build:postprocess",
"build:tests": "NODE_ENV=testing run-s \"build:prepare\" \"build:all\" \"build:postprocess\" \"build:layout-only-css\"",
"build:all": "run-p 'build:js -s' 'build:scss -s' 'build:html -s' 'build:static -s'",
"build:js": "mkdir -p build/static && rollup -c",
"build:scss": "for f in src/scss/*.scss; do sass --no-source-map $f build/static/`basename $f .scss`.css; done;",
"build:html": "mkdir -p build/ && rsync -vazL src/html/* build/",
"build:styles-json": "node scripts/build-styles-json.cjs",
"build:fetch-or-build-modules": "node scripts/fetch-or-build-modules.mjs",
"build:fonts": "node scripts/fetch-fonts.cjs",
"build:locale": "node scripts/fetch-locale.cjs",
"build:date-formats": "node scripts/fetch-date-formats.cjs",
"build:version": "node scripts/store-version.cjs",
"build:static": "mkdir -p build/static && rsync -vazL src/static/* build/static/",
"build:postprocess": "postcss build/static/zotero-web-library.css --use autoprefixer --no-map -r",
"build:check-icons": "node scripts/check-icons.js",
"build:prepare": "run-p \"build:version\" \"build:locale\" \"build:date-formats\" \"build:fetch-or-build-modules\" \"build:fonts\" \"build:styles-json\" \"build:check-icons\"",
"build:layout-only-css": "node scripts/build-layout-only-css.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/`basename $f .scss`.css; done;",
"devbuild:scss:post": "postcss build/static/*.css --use autoprefixer -r",
"start:all": "run-p \"serve -s {@}\" \"devel -s {@}\"",
"start": "run-s \"build:prepare\" \"start:all\"",
"stylelint": "stylelint src/scss/**/*.scss || true",
"eslint": "eslint \"src/js/**/*.+(js|jsx)\" || true",
"lint": "run-p 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:jest\"",
"test:jest": "jest",
"test:delete-output": "rimraf test/output",
"test:delete-snapshots": "rimraf test/snapshots",
"test:jest-update-snapshots": "UPDATE_SCREENSHOTS=1 jest --selectProjects snapshots",
"test:update-snapshots": "run-s test:delete-output test:delete-snapshots test:jest-update-snapshots",
"fixed-state-server": "node scripts/fixed-state-server.mjs",
"add-license": "node scripts/add-license.cjs",
"compile-zotero-icons": "node scripts/compile-zotero-icons.mjs"
},
"keywords": [
"Zotero"
],
"license": "AGPL-3.0",
"dependencies": {
"@babel/runtime": "^7.26.9",
"@babel/runtime-corejs3": "^7.26.9",
"@floating-ui/react-dom": "^2.1.2",
"@reduxjs/toolkit": "^2.5.1",
"classnames": "^2.5.1",
"connected-react-router": "^6.9.3",
"copy-to-clipboard": "^3.3.3",
"core-js": "^3.40.0",
"deep-equal": "^2.2.3",
"file-saver": "^2.0.5",
"history": "<5.0.0",
"memoize-one": "^6.0.0",
"prop-types": "^15.8.1",
"rdndmb-html5-to-touch": "^9.0.0",
"react": "^18.3.1",
"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": "^18.3.1",
"react-modal": "^3.16.3",
"react-redux": "^9.2.0",
"react-router": "<6.0.0",
"react-router-dom": "<6.0.0",
"react-transition-group": "^4.4.5",
"react-virtualized-auto-sizer": "^1.0.25",
"react-window": "^1.8.11",
"react-window-infinite-loader": "^1.0.10",
"redux": "^5.0.1",
"redux-async-queue": "^1.0.0",
"redux-thunk": "^3.1.0",
"use-debounce": "^10.0.4",
"zotero-api-client": "^0.47.0"
},
"devDependencies": {
"@babel/core": "^7.26.9",
"@babel/eslint-parser": "^7.26.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-syntax-import-attributes": "^7.26.0",
"@babel/plugin-transform-async-to-generator": "^7.25.9",
"@babel/plugin-transform-runtime": "^7.26.9",
"@babel/preset-env": "^7.26.9",
"@babel/preset-react": "^7.26.3",
"@playwright/test": "^1.50.1",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "<27.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-virtual": "^3.0.2",
"@rollup/plugin-wasm": "^6.2.2",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "^14.6.1",
"@welldone-software/why-did-you-render": "^10.0.1",
"autoprefixer": "^10.4.20",
"babel-jest": "^29.7.0",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-transform-import-meta": "^2.3.2",
"browserstack-local": "^1.5.6",
"chai": "^5.2.0",
"eslint": "<9.0.0",
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"glob": "^11.0.1",
"globals": "^15.15.0",
"http-proxy": "^1.18.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mocha": "^11.1.0",
"msw": "=2.4.9",
"node-fetch": "<3.0.0",
"nodemon": "^3.1.9",
"npm-run-all": "^4.1.5",
"nyc": "^17.1.0",
"pixelmatch": "<6.0.0",
"playwright": "^1.49.0",
"pngjs": "^7.0.0",
"postcss": "^8.5.2",
"postcss-cli": "^11.0.0",
"ps-tree": "^1.2.0",
"react-test-renderer": "^18.3.1",
"redux-mock-store": "^1.5.5",
"rimraf": "^6.0.1",
"rollup": "<4.34.0",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-sizes": "^1.1.0",
"rollup-plugin-typescript2": "^0.36.0",
"rollup-plugin-visualizer": "^5.14.0",
"rollup-plugin-web-worker-loader": "^1.7.0",
"run-sequence": "^2.2.1",
"sass": "^1.85.0",
"serve-static": "^1.16.2",
"stylelint": "^16.14.1",
"stylelint-config-recommended-scss": "^14.1.0",
"stylelint-config-standard": "^37.0.0",
"stylelint-config-standard-scss": "^14.0.0",
"stylelint-scss": "^6.11.0",
"tslib": "^2.8.1",
"typescript": "^5.7.3"
}
}