-
Notifications
You must be signed in to change notification settings - Fork 0
/
deno.jsonc
41 lines (41 loc) · 1.46 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
34
35
36
37
38
39
40
41
{
"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 --unstable-kv",
"cov": "deno task test --coverage=cov_profile; deno coverage cov_profile",
"lint": "deno lint --ignore=cov_profile",
"fmt": "deno fmt --ignore=cov_profile",
"check": "deno check --unstable-kv ./**/*.ts",
"ci": "deno task check && 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 ./**.*.ts",
// git hooks
"setup-hooks": "deno run --allow-read --allow-run https://pax.deno.dev/kawarimidoll/deno-dev-template/scripts/setup-hooks.ts",
"pre-commit": "deno task doc && 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"
},
"fmt": {
"useTabs": false,
"lineWidth": 100,
"indentWidth": 2,
"singleQuote": false,
"include": [
"denops"
]
},
"lint": {
"include": [
"denops"
]
},
"lock": false
}