-
Notifications
You must be signed in to change notification settings - Fork 19
/
package.json
133 lines (133 loc) · 5.75 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
{
"name": "zoterobib",
"license": "AGPL-3.0",
"version": "2.3.1",
"private": true,
"description": "",
"repository": "",
"main": "",
"type": "module",
"sourceType": "module",
"browserslist": "firefox >= 68, chrome >=67, edge >= 15, safari >= 10, last 2 versions, not dead, not ie 11, not ie 10",
"scripts": {
"serve": "node scripts/server.cjs",
"prebuild": "npm run clean -s && mkdir -p build/static/",
"clean": "rimraf build lang",
"clean:data": "rimraf data",
"clean:citeproc": "rimraf src/static/js/citeproc.js",
"clean:all": "run-p \"clean\" \"clean:data\" \"clean:citeproc\"",
"build": "run-p \"build:messages\" \"build:fetch-citeproc\" \"build:collect-locale\" \"build:styles-json\" && NODE_ENV=production run-p 'build:js -s' 'build:scss -s' 'build:html -s' 'build:static -s' && npm run build:postprocess",
"build:js": "mkdir -p build/static && NODE_ENV=production 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": "node scripts/build-html.cjs",
"build:collect-locale": "node scripts/collect-locale.js",
"build:styles-json": "node scripts/build-styles-json.cjs",
"build:fetch-citeproc": "node scripts/fetch-citeproc-js.cjs",
"build:static": "mkdir -p build/static && rsync -vazL src/static/* build/static/",
"build:postprocess": "postcss build/static/bib.css --use autoprefixer --use cssnano --no-map -r",
"build:prepare-for-tests": "run-p \"build:collect-locale\" \"build:styles-json\"",
"devel": "run-p 'devel:js -s' 'devel:scss -s' 'devel:html -s' 'devel:static -s'",
"devel:js": "rollup -c -w",
"devel:scss": "for f in src/scss/*.scss; do sass --embed-source-map --watch $f build/static/`basename $f .scss`.css; done;",
"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'",
"start": "mkdir -p build/static && run-p \"build:fetch-citeproc\" \"build:collect-locale\" \"build:styles-json\" && run-p \"devel -s {@}\" \"serve -s {@}\"",
"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'",
"build:messages": "run-s \"build:extract-messages\" \"build:compile-messages\"",
"build:extract-messages": "formatjs extract \"src/js/**/*\" --out-file lang/tx/en-US.json --format transifex",
"build:compile-messages": "formatjs compile lang/tx/en-US.json --ast --out-file lang/compiled/en-US.json --format transifex",
"locale-to-zotero": "node scripts/locale-to-zotero.mjs",
"locale-from-zotero": "node scripts/locale-from-zotero.mjs",
"jest": "jest --silent",
"jest:watch": "jest --watch",
"test": "run-s \"build:prepare-for-tests\" \"jest\""
},
"dependencies": {
"@babel/runtime": "^7.26.0",
"@babel/runtime-corejs3": "^7.26.0",
"@citeproc-rs/wasm": "^0.0.0-canary-2ab195a",
"@floating-ui/react-dom": "=2.1.2",
"@formatjs/intl-getcanonicallocales": "^2.5.1",
"@formatjs/intl-locale": "^4.2.1",
"@formatjs/intl-pluralrules": "^5.3.1",
"balanced-match": "^3.0.1",
"classnames": "^2.5.1",
"copy-to-clipboard": "^3.3.3",
"core-js": "^3.38.1",
"deep-equal": "^2.2.3",
"es6-promise": "^4.2.8",
"file-saver": "^2.0.5",
"load-script": "^2.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-intl": "^6.8.4",
"react-modal": "^3.16.1",
"react-transition-group": "^4.4.5",
"smooth-scroll": "^16.1.3",
"use-debounce": "^10.0.4"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/eslint-parser": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.25.9",
"@formatjs/cli": "^6.3.5",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@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.2",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@welldone-software/why-did-you-render": "^8.0.3",
"autoprefixer": "^10.4.20",
"babel-jest": "^29.7.0",
"babel-plugin-formatjs": "^10.5.22",
"cheerio": "^1.0.0",
"citeproc": "^2.4.63",
"config": "^3.3.12",
"cross-fetch": "^4.0.0",
"cssnano": "^7.0.6",
"eslint": "^8.52.0",
"eslint-plugin-jest-dom": "^5.4.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"fs-extra": "^11.2.0",
"handlebars": "^4.7.8",
"http-proxy": "^1.18.1",
"http-server": "^14.1.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"marked": "^14.1.3",
"msw": "^2.5.2",
"nodemon": "^3.1.7",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.47",
"postcss-cli": "^11.0.0",
"prop-types": "^15.8.1",
"rimraf": "^6.0.1",
"rollup": "^4.24.2",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-sizes": "^1.0.6",
"rollup-plugin-visualizer": "^5.12.0",
"rollup-plugin-web-worker-loader": "^1.6.1",
"sass": "^1.80.4",
"serve-static": "^1.16.2",
"stylelint": "^16.10.0",
"stylelint-config-recommended-scss": "^14.1.0",
"stylelint-config-standard": "^36.0.1",
"stylelint-scss": "^6.8.1",
"terser": "^5.36.0"
}
}