-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdeno.jsonc
More file actions
99 lines (82 loc) · 3.3 KB
/
deno.jsonc
File metadata and controls
99 lines (82 loc) · 3.3 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
// App Version
"version": "1.2.0",
"unstable": [
// So format Vue components
"fmt-component",
// Deno KV
"kv"
],
// I just don't understand why sometimes Deno keeps asking me to delete and regenerate this file...
// It could prevent the app from running, which is not ideal.
// Disable this for safety for now
"lock": false,
"tasks": {
// Production Start
"start": "deno run --allow-all ./backend/main.ts",
// Setup for production
"setup": "deno run --allow-all ./extra/setup.ts",
// Setup for dev
"setup:dev": "deno run --allow-all ./extra/setup-dev.ts",
// (DEV ONLY) Development (Start both backend and frontend at the same time)
"dev": "concurrently -k -r \"wait-on tcp:60000 && deno task dev:backend \" \"deno task dev:frontend\"",
"dev:backend": "NODE_ENV=development deno run --check --allow-all --watch --watch-exclude=./frontend ./backend/main.ts",
"dev:frontend": "NODE_ENV=development vite --host --config ./frontend/vite.config.ts",
// Run Test
"test": "deno test --allow-all --coverage",
// (DEV ONLY) Compile the binary
"build": "deno run --check --allow-all ./extra/build.ts",
// (DEV ONLY) Build the frontend
"build:frontend": "deno run --check --allow-all ./extra/build-frontend.ts",
// Check backend code
// For production users, please use `deno task setup` instead
"check": "deno check ./backend",
// (DEV ONLY) Build and pack the app into a 7z file, also includes necessary tools like ffmpeg, ffprobe, etc.
"pack": "deno run --allow-all ./extra/pack.ts",
// Lint
"lint": "deno lint",
// Demo Container (Just for demo purpose)
"demo": "deno task build:frontend && docker compose -f ./extra/demo/compose.yaml --project-directory ./ up --build"
},
// Run `deno fmt` to format your code
"fmt": {
"indentWidth": 4,
"semiColons": true,
"singleQuote": false,
"lineWidth": 200
},
// All production dependencies must be listed here, do not put them in package.json
// And dev dependencies must be listed in `package.json` and `package-dev.json`, do not put them here
"imports": {
"@lambdalisue/ttl-cache": "jsr:@lambdalisue/ttl-cache@~1.0.0",
"@louislam/deno-serve-router": "jsr:@louislam/deno-serve-router@~1.0.1",
"@std/fs": "jsr:@std/fs@^1.0.16",
"@std/http": "jsr:@std/http@^1.0.14",
"@std/jsonc": "jsr:@std/jsonc@^1.0.2",
"@std/log": "jsr:@std/log@^0.224.14",
"@std/path": "jsr:@std/path@^1.0.8",
"@std/semver": "jsr:@std/semver@^1.0.5",
"@std/yaml": "jsr:@std/yaml@^1.0.5",
"zod": "npm:zod@~3.24.3",
"natural-orderby": "npm:natural-orderby@~5.0.0"
},
// Lint
"lint": {
"exclude": [
// All _test.ts files
"./backend/**/*_test.ts",
"./extra/downloader.ts"
//"./frontend/**/*",
//"./extra/**/*"
],
"rules": {
"tags": ["recommended"],
"exclude": [
"prefer-const",
"no-process-global",
"require-await",
"no-unused-vars"
]
}
}
}