Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
61 lines (61 loc) · 3.32 KB
/
Copy pathpackage.json
File metadata and controls
61 lines (61 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"name": "cedo",
"private": true,
"license": "AGPL-3.0-or-later",
"workspaces": [
"packages/*",
"apps/*"
],
"type": "module",
"scripts": {
"setup": "bun run scripts/setup.ts",
"dev": "bun run scripts/dev.ts",
"release": "bun run scripts/release.ts",
"dev:api": "bun --watch apps/api/src/index.ts",
"dev:app": "cd apps/app && ./node_modules/.bin/expo start --web",
"check": "bun run format && bun run lint && bun run typecheck && bun run deadcode && bun run docs:links && bun run test",
"test": "bun test --parallel --coverage --coverage-reporter=lcov --coverage-dir=.artifacts/coverage && bun run scripts/coverage.ts",
"test:changed": "bun test --changed",
"db:up": "docker compose up -d --wait db && docker compose -f docker-compose.test.yml up -d --wait",
"db:down": "docker compose stop db && docker compose -f docker-compose.test.yml stop",
"db:migrate": "bun run apps/api/src/db/migrate.ts",
"db:seed": "bun run apps/api/src/db/seed.ts",
"db:reset": "docker compose down -v && docker compose up -d --wait db && bun run apps/api/src/db/migrate.ts && bun run apps/api/src/db/seed.ts",
"db:test": "docker compose -f docker-compose.test.yml up -d --wait",
"db:studio": "cd apps/api && ./node_modules/.bin/drizzle-kit studio",
"env:init": "test -f .env && echo \".env already exists — leaving it alone\" || (cp .env.example .env && echo \"Created .env from .env.example. The defaults work for local development.\")",
"e2e": "bun run build:app && bun test ./apps/app/e2e/*.e2e.ts",
"e2e:only": "bun test ./apps/app/e2e/*.e2e.ts",
"shot": "bun run build:app && bun run apps/app/e2e/shot.ts",
"gallery": "bun run build:app && bun run apps/app/e2e/gallery.ts",
"perf": "CEDO_PERF=1 bun test ./apps/api/src/test/perf/*.perf.ts",
"perf:seed": "CEDO_PERF=1 NODE_ENV=test bun run apps/api/src/db/seed-perf/index.ts",
"perf:report": "CEDO_PERF=1 NODE_ENV=test bun run apps/api/src/test/perf/report.ts",
"format": "oxfmt .",
"format:check": "oxfmt --check .",
"lint": "bun run lint:server && bun run lint:app",
"lint:server": "oxlint -c .oxlintrc.typeaware.json --deny-warnings packages/contract apps/api scripts test",
"lint:app": "oxlint --deny-warnings apps/app",
"typecheck": "bun run typecheck:server && bun run typecheck:app",
"typecheck:server": "tsc -b . && tsc -p apps/api/tsconfig.tools.json",
"typecheck:app": "apps/app/node_modules/.bin/tsc -p apps/app --noEmit",
"deadcode": "knip && knip --production --include files,dependencies || (echo 'Dead code, listed above. An unused export: drop its export, or delete it if nothing uses it. An unused file or dependency: delete it, or give knip.jsonc the entry it cannot see, with the reason. See docs/10-testing.md, Guards over the whole repository.' >&2 && exit 1)",
"docs:links": "bun run scripts/check-doc-links.ts",
"build:app": "cd apps/app && bun run export",
"check:ci": "bun run format:check && bun run lint && bun run typecheck && bun run deadcode && bun run docs:links && bun run test"
},
"devDependencies": {
"@types/bun": "1.4.4",
"knip": "6.43.0",
"oxfmt": "0.73.0",
"oxlint": "1.88.0",
"oxlint-tsgolint": "7.0.2004",
"typescript": "7.0.2"
},
"overrides": {
"react-native-worklets": "0.13.0"
},
"engines": {
"bun": ">=1.4.0"
}
}