Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .agents/skills/databuddy-internal/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Keep additions **minimal**: one bullet, a new `rg` hint, or a routing note—eno
- `packages/sdk`: published analytics SDK for React, Vue, and Node
- `packages/tracker`: internal tracker script build and release package
- `packages/encryption`, `packages/notifications`, `packages/cache`, `packages/redis`, `packages/services`, `packages/validation`, `packages/api-keys`: shared infra and domain packages
- Knip is configured in root `knip.json` (run `bun run knip`); per-workspace test globs are required because the root `test:watch` (`bun test --watch ./apps`) script shadows the Bun plugin's per-workspace script parsing; `apps/cron` is ignored (standalone scripts, no package.json)

Read [codebase-map.md](./references/codebase-map.md) when you need deeper routing guidance.

Expand Down
100 changes: 100 additions & 0 deletions knip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"$schema": "./node_modules/knip/schema.json",
"workspaces": {
".": {
"entry": ["scripts/**/*.ts"],
"ignore": ["apps/cron/**"],
"ignoreBinaries": ["where", "which", "up"]
},
"apps/dashboard": {
"entry": ["**/*.test.{ts,tsx}"],
"ignoreDependencies": ["topojson-specification"]
},
"apps/docs": {
"entry": ["source.config.ts", "content/**/*.mdx", "**/*.test.{ts,tsx}"]
},
"apps/insights": {
"entry": ["**/*.test.{ts,tsx}"]
},
"apps/links": {
"entry": ["**/*.test.{ts,tsx}"]
},
"apps/slack": {
"entry": ["**/*.test.{ts,tsx}"]
},
"apps/uptime": {
"entry": ["**/*.test.{ts,tsx}"]
},
"apps/video": {
"entry": ["remotion.config.ts", "src/index.ts"],
"ignoreBinaries": ["out/intelligence-platform.mp4"]
},
"packages/ai": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/api-keys": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/db": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/devtools": {
"entry": ["src/{core,react,vue}/index.ts"]
},
"packages/email": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/encryption": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/env": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/migrate": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/notifications": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/nuxt": {
"entry": [
"src/module.ts",
"src/runtime/**/*.ts",
"playground/**/*.{ts,vue}"
]
},
"packages/redis": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/rpc": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/sdk": {
"entry": [
"src/{core,node,react,vue}/index.ts",
"test-entry.ts",
"tests/**/*.test.{ts,tsx}",
"tests/**/*.types.ts"
]
},
"packages/services": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/shared": {
"entry": ["**/*.test.{ts,tsx}"]
},
"packages/tracker": {
"entry": [
"src/{errors,index,vitals}.ts",
"test-server.ts",
"tests/unit/**/*.test.ts"
]
},
"packages/ui": {
"ignoreDependencies": ["tailwindcss", "tw-animate-css"]
},
"packages/validation": {
"entry": ["**/*.test.{ts,tsx}"]
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "databuddy",
"module": "index.ts",
"devDependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-transform-react-jsx": "^7.28.6",
Expand Down Expand Up @@ -44,6 +43,7 @@
"test:watch": "dotenv -- bun test --watch ./apps",
"test:coverage": "dotenv -- bun test --coverage ./apps",
"lint": "bunx ultracite check && bun run lint:policies",
"knip": "knip",
"lint:policies": "bunx tsc --project scripts/tsconfig.json && bun test scripts/lint-policy.test.ts && bun scripts/lint-policy.ts",
"format": "bunx ultracite fix",
"check-types": "dotenv -- turbo run check-types",
Expand Down