1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-29 09:15:11 +01:00
Peacock/package.json
Lennard Fonteijn 22d6b6d1ba
Added vitest and configuration to support unit tests (#37)
* Added Vitest and configuration to support unit tests
Added Vite plugin to fix performance issue with JSON files
Added mock for configSwizzleManager to support the Vite plugin

* Added custom ESLint rule to enforce proper module paths
2023-03-20 20:19:26 -04:00

105 lines
3.9 KiB
JSON

{
"name": "@peacockproject/monorepo",
"version": "6.0.0-beta.4",
"revisionIdent": -6004,
"private": true,
"license": "AGPL-3.0",
"scripts": {
"start": "node chunk0.js",
"clean": "rimraf tsconfig.tsbuildinfo build",
"prettier": "pprettier --write \"**/*.{js,json,ts,md,tsx,css,mjs,html}\"",
"build": "yarn webui:build && node packaging/build.mjs",
"typecheck-ws": "tsc",
"typecheck": "yarn workspaces foreach -A run typecheck-ws",
"lint": "eslint --format=pretty .",
"extract-resource-packages": "resources/extractResourcePackages.cmd",
"rebuild-locale": "resources/rebuildLocale.cmd",
"optimize": "terser chunk0.js -o chunk0.js -c --toplevel --timings --ecma 2021 -m --source-map \"content='chunk0.js.map'\"",
"webui": "yarn workspace @peacockproject/web-ui",
"typedefs": "yarn workspace @peacockproject/core",
"run-dev": "node packaging/devLoader.mjs",
"extract-challenge-data": "node packaging/extractChallengeData.mjs",
"test": "vitest --run --config tests/vitest.config.ts",
"test-ui": "vitest --config tests/vitest.config.ts --ui"
},
"prettier": {
"semi": false,
"tabWidth": 4,
"trailingComma": "all"
},
"resolutions": {
"body-parser": "npm:@peacockproject/body-parser@npm:2.0.0-peacock.6",
"debug": "^4.3.4",
"http-errors": "patch:http-errors@npm:2.0.0#.yarn/patches/http-errors-npm-2.0.0-3f1c503428.patch",
"iconv-lite": "patch:iconv-lite@npm:0.6.3#.yarn/patches/iconv-lite-npm-0.6.3-24b8aae27e.patch",
"send": "patch:send@npm:0.18.0#.yarn/patches/send-npm-0.18.0-faadf6353f.patch"
},
"dependencies": {
"@peacockproject/statemachine-parser": "^5.3.0",
"@yarnpkg/fslib": "^3.0.0-rc.39",
"@yarnpkg/libzip": "^3.0.0-rc.39",
"atomically": "^2.0.1",
"axios": "^1.3.4",
"body-parser": "*",
"clipanion": "^3.2.0",
"commander": "^10.0.0",
"esbuild-wasm": "^0.17.12",
"express": "patch:express@npm%3A4.18.2#~/.yarn/patches/express-npm-4.18.2-bb15ff679a.patch",
"jest-diff": "^29.5.0",
"js-ini": "^1.6.0",
"json5": "^2.2.3",
"jsonwebtoken": "^9.0.0",
"md5-file": "^5.0.0",
"msgpackr": "^1.8.5",
"nanoid": "^4.0.1",
"parseurl": "^1.3.3",
"picocolors": "patch:picocolors@npm%3A1.0.0#~/.yarn/patches/picocolors-npm-1.0.0-d81e0b1927.patch",
"progress": "^2.0.3",
"prompts": "^2.4.2",
"random": "^4.1.0",
"send": "0.18.0",
"serve-static": "^1.15.0"
},
"devDependencies": {
"@mixer/parallel-prettier": "^2.0.3",
"@types/body-parser": "1.19.2",
"@types/express": "^4.17.17",
"@types/jsonwebtoken": "^9.0.1",
"@types/node": "^18",
"@types/parseurl": "^1.3.1",
"@types/progress": "^2.0.5",
"@types/prompts": "^2.4.3",
"@types/rimraf": "^4.0.5",
"@types/send": "^0.17.1",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"@vitest/ui": "0.29.6",
"esbuild": "^0.17.12",
"esbuild-register": "^3.4.2",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"eslint-formatter-pretty": "^4.1.0",
"eslint-plugin-custom-rules": "link:./packaging/eslint",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react-hooks": "^4.6.0",
"glob": "^9.3.0",
"json-keys-sort": "^2.1.0",
"ms": "^2.1.3",
"prettier": "^2.8.4",
"rimraf": "^4.4.0",
"terser": "^5.16.6",
"typescript": "4.9.5",
"vitest": "0.29.6"
},
"engines": {
"node": "18.x || 19.x",
"yarn": "^3.2.0"
},
"workspaces": [
"webui",
"packaging/typedefs"
],
"packageManager": "yarn@4.0.0-rc.40"
}