-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeno.json
More file actions
54 lines (53 loc) · 2.2 KB
/
deno.json
File metadata and controls
54 lines (53 loc) · 2.2 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
{
"version": "1.1.1",
"tasks": {
"dev": "deno run --allow-net --allow-env --allow-read --allow-run --allow-ffi --watch main.ts",
"start": "deno run --allow-net --allow-env --allow-read --allow-ffi --allow-run main.ts",
"test": "deno task test:db:setup && LOG_LEVEL=ERROR DB_HOST=localhost DB_PORT=5433 DB_USER=test DB_PASSWORD=test DB_NAME=test DATABASE_URL=postgresql://test:test@localhost:5433/test ENCRYPTION_SECRET=test-encryption-secret-for-tests-32chars deno test --allow-read --allow-env --allow-net --allow-ffi --allow-run --trace-leaks \"**/*_test.ts\"",
"coverage": "deno task test --coverage=coverage && deno coverage coverage",
"test:db:setup": "scripts/setup-test-db.sh",
"lint": "deno lint",
"fmt": "deno fmt",
"fmt:check": "deno fmt --check",
"check": "deno check **/*.ts",
"check:all": "deno task lint && deno task fmt:check && deno task check && deno task coverage",
"setup-db": "prisma db push",
"prisma:generate": "deno run -A --unstable-detect-cjs npm:prisma@latest generate",
"prisma:install": "deno run -A npm:prisma@latest install",
"prisma:migrate": "deno run -A npm:prisma@latest migrate dev",
"prisma:push": "deno run -A npm:prisma@latest db push",
"prisma:studio": "deno run -A npm:prisma studio",
"prisma:seed": "deno run --allow-net --allow-env --allow-read prisma/seed.ts"
},
"imports": {
"@oak/oak": "jsr:@oak/oak@^17.1.4",
"@prisma/client": "npm:@prisma/client@^6.4.1",
"@std/assert": "jsr:@std/assert@1",
"@std/dotenv": "jsr:@std/dotenv@^0.218.2",
"postgres": "npm:postgres@3.4.3",
"generated/": "./node_modules/generated/",
"@app/": "./",
"@db/": "./db/",
"@utils/": "./utils/",
"@slack/": "./slack/",
"@oauth/": "./oauth/",
"@middleware/": "./middleware/",
"@ui/": "./ui/"
},
"nodeModulesDir": "auto",
"lint": {
"include": ["**/*.ts"],
"exclude": ["certs/", "node_modules/", "generated/"],
"rules": {
"tags": ["recommended"]
}
},
"fmt": {
"include": ["**/*.ts", "**/*.js", "**/*.json", "**/*.md"],
"exclude": ["certs/", "node_modules/", "generated/"],
"indentWidth": 2,
"lineWidth": 100,
"semiColons": true,
"singleQuote": false
}
}