chore: move knip to project root (@fehmer) (#6842)

This commit is contained in:
Christian Fehmer 2025-08-07 15:00:43 +02:00 committed by GitHub
parent ced5dc1920
commit bec5606c7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 18 additions and 11 deletions

View file

@ -1,4 +0,0 @@
{
"entry": "src/server.ts",
"project": "src/**/*.ts"
}

View file

@ -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"

View file

@ -1,4 +0,0 @@
{
"entry": "src/ts/index.ts",
"project": "src/ts/**/*.ts"
}

View file

@ -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
View 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"
}
}
}

View file

@ -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"