mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-04 13:46:34 +08:00
chore: move knip to project root (@fehmer) (#6842)
This commit is contained in:
parent
ced5dc1920
commit
bec5606c7a
6 changed files with 18 additions and 11 deletions
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"entry": "src/server.ts",
|
||||
"project": "src/**/*.ts"
|
||||
}
|
|
@ -16,7 +16,6 @@
|
|||
"integration-test": "vitest run --project=integration --project=integration-isolated",
|
||||
"test-coverage": "vitest run --coverage",
|
||||
"dev": "concurrently -p none \"tsx watch --clear-screen=false --inspect ./src/server.ts\" \"tsc --preserveWatchOutput --noEmit --watch\" \"esw src/ -w --ext .ts --cache --color\"",
|
||||
"knip": "knip",
|
||||
"docker-db-only": "docker compose -f docker/compose.db-only.yml up",
|
||||
"docker": "docker compose -f docker/compose.yml up",
|
||||
"gen-docs": "tsx scripts/openapi.ts dist/static/api/openapi.json && redocly build-docs -o dist/static/api/internal.html internal@v2 && redocly bundle -o dist/static/api/public.json public-filter && redocly build-docs -o dist/static/api/public.html public@v2"
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"entry": "src/ts/index.ts",
|
||||
"project": "src/ts/**/*.ts"
|
||||
}
|
|
@ -21,7 +21,6 @@
|
|||
"test-coverage": "vitest run --coverage",
|
||||
"dev-test": "concurrently --kill-others \"vite dev\" \"vitest\"",
|
||||
"tsc": "tsc",
|
||||
"knip": "knip",
|
||||
"docker": "docker compose -f docker/compose.dev.yml up"
|
||||
},
|
||||
"engines": {
|
||||
|
|
16
knip.json
Normal file
16
knip.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"workspaces": {
|
||||
"backend": {
|
||||
"entry": "src/server.ts",
|
||||
"project": "src/**/*.ts"
|
||||
},
|
||||
"frontend": {
|
||||
"entry": "src/ts/index.ts",
|
||||
"project": "src/ts/**/*.ts"
|
||||
},
|
||||
"packages/*": {
|
||||
"entry": "src/index.ts",
|
||||
"project": "src/**/*.ts"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -56,7 +56,8 @@
|
|||
"pr-check-lint-json": "cd frontend && eslint './static/**/*.json'",
|
||||
"pr-check-quote-json": "cd frontend && npx gulp pr-check-quote-json",
|
||||
"pr-check-language-json": "cd frontend && npx gulp pr-check-language-json && turbo test -- constants/languages",
|
||||
"pr-check-other-json": "cd frontend && npx gulp pr-check-other-json && turbo test -- constants/layouts constants/themes constants/fonts"
|
||||
"pr-check-other-json": "cd frontend && npx gulp pr-check-other-json && turbo test -- constants/layouts constants/themes constants/fonts",
|
||||
"knip": "knip"
|
||||
},
|
||||
"engines": {
|
||||
"node": "20.19.4"
|
||||
|
|
Loading…
Add table
Reference in a new issue