mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
* [monorepo] enable caching for eslint/prettier/stylelint * [monorepo] speed up prettier by swapping --list-different for --check --list-different will print each file that it processes. We have a lot of files in the monorepo. Using --check only prints mismatching files. Co-authored-by: Rebeka <rebeka.dekany@overleaf.com> * [monorepo] explicitly configure prettier cache-location This is the default location. Prettier will only discover that location if the top level node_modules folder is writable, which is not the case in CI. We create the .cache folder outside of docker, writable to node inside docker. The proper fix would be in prettier, to only check for write access in the cache folder. Something to raise/upstream another day. * [monorepo] run top-level format/format_fix in a single container With the cache in place, it is much faster to use a single container. As there is a single shared cache file, concurrent processes may see a partially (re-)written cache file and bail out. - all in a single container: 24s - previous with -j4: 41s - previous with -j8: failed due to corrupted cache file --------- Co-authored-by: Rebeka <rebeka.dekany@overleaf.com> GitOrigin-RevId: 7850a3a980ae6c836393d97fe56a6316ffc3fa18
54 lines
1.6 KiB
JSON
54 lines
1.6 KiB
JSON
{
|
|
"name": "@overleaf/clsi",
|
|
"description": "A Node.js implementation of the CLSI LaTeX web-API",
|
|
"private": true,
|
|
"main": "app.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "node app.js",
|
|
"test:acceptance:_run": "mocha --recursive --timeout 15000 --exit $@ test/acceptance/js",
|
|
"test:acceptance": "npm run test:acceptance:_run -- --grep=$MOCHA_GREP",
|
|
"test:unit:_run": "vitest --config ./vitest.config.unit.cjs",
|
|
"test:unit": "npm run test:unit:_run",
|
|
"nodemon": "node --watch app.js",
|
|
"lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix .",
|
|
"lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix .",
|
|
"types:check": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@overleaf/fetch-utils": "*",
|
|
"@overleaf/logger": "*",
|
|
"@overleaf/metrics": "*",
|
|
"@overleaf/o-error": "*",
|
|
"@overleaf/promise-utils": "*",
|
|
"@overleaf/settings": "*",
|
|
"@overleaf/stream-utils": "*",
|
|
"archiver": "5.3.2",
|
|
"async": "^3.2.5",
|
|
"body-parser": "1.20.4",
|
|
"bunyan": "^1.8.15",
|
|
"dockerode": "^4.0.9",
|
|
"express": "4.22.1",
|
|
"lodash": "^4.17.21",
|
|
"p-limit": "^3.1.0",
|
|
"request": "2.88.2",
|
|
"send": "^0.19.0",
|
|
"tar-fs": "^3.1.1",
|
|
"workerpool": "^6.1.5"
|
|
},
|
|
"devDependencies": {
|
|
"chai": "^4.3.6",
|
|
"chai-as-promised": "^7.1.1",
|
|
"mocha": "^11.1.0",
|
|
"mocha-junit-reporter": "^2.2.1",
|
|
"mocha-multi-reporters": "^1.5.1",
|
|
"mock-fs": "^5.1.2",
|
|
"node-fetch": "^2.7.0",
|
|
"sinon": "~9.0.1",
|
|
"sinon-chai": "^3.7.0",
|
|
"timekeeper": "2.2.0",
|
|
"typescript": "^5.0.4",
|
|
"vitest": "^4.0.0"
|
|
}
|
|
}
|