-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
deno.jsonc
29 lines (29 loc) · 1.31 KB
/
deno.jsonc
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
{
"imports": {
"std/": "https://deno.land/[email protected]/"
},
"lint-staged": {
"*": "deno lint && deno fmt",
"deno.jsonc": "deno task setup-hooks"
},
"tasks": {
// general permissions
"run": "deno run --allow-env --allow-read --allow-net",
// runners
"dev": "deno task run --watch main.ts",
"main": "deno task run main.ts",
"start": "deno task run --watch server.ts",
// development
"test": "deno test --allow-env --allow-read --allow-net --allow-none",
"cov": "deno task test --coverage=cov_profile; deno coverage cov_profile",
"lint": "deno lint --ignore=cov_profile",
"fmt": "deno fmt --ignore=cov_profile",
"ci": "deno task lint && deno task fmt --check && deno task test",
"deps": "deno run --allow-read --allow-write --allow-net --allow-run https://deno.land/x/[email protected]/main.ts --test='deno task test' deno.jsonc $(find . -name '*.ts')",
// git hooks
"setup-hooks": "deno run --allow-read --allow-run https://pax.deno.dev/kawarimidoll/deno-dev-template/scripts/setup-hooks.ts",
"commit-msg": "npx commitlint -x @commitlint/config-conventional -e \"$1\"",
"pre-commit": "deno run --allow-read --allow-env --allow-run --allow-write https://pax.deno.dev/kawarimidoll/deno-dev-template/scripts/lint-staged.ts",
"pre-push": "deno task ci"
}
}