-
Notifications
You must be signed in to change notification settings - Fork 0
/
deno.jsonc
33 lines (33 loc) · 1.19 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
30
31
32
33
{
"imports": {
"std/": "https://deno.land/[email protected]/",
"dnt/": "https://deno.land/x/[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 mod/index.ts",
// development
"test": "deno test --allow-env --allow-read --allow-net --allow-none tests/",
"cov": "deno task test --coverage=coverage; deno coverage coverage",
"ci": "deno lint && deno fmt --check && deno task test",
"build-npm": "deno run -A scripts/build-npm.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"
},
"lint": {
"exclude": ["coverage/", "npm/"]
},
"fmt": {
"exclude": ["coverage/", "npm/"],
"semiColons": false
}
}