-
Notifications
You must be signed in to change notification settings - Fork 0
/
deno.json
60 lines (60 loc) · 1.89 KB
/
deno.json
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
{
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
"version": "1.0.2",
"tasks": {
"start": {
"description": "Start project",
"command": "deno run --allow-env --allow-run main.ts"
},
"dev": {
"description": "Start project on dev mode",
"command": "deno run --allow-all --unstable main.ts"
},
"test": {
"description": "Run tests",
"command": "deno test --doc --parallel --coverage && deno coverage"
},
"coverage": {
"command": "deno coverage --lcov --output=cov.lcov coverage && genhtml -o html_cov cov.lcov"
},
"fmt": {
"description": "Formatting",
"command": "deno fmt --check && deno lint"
},
"check": {
"description": "Format, lint and run tests",
"command": "deno fmt --check && deno lint && deno task test"
},
"doc": {
"description": "Generate code documentation",
"command": "deno doc --lint main.ts && deno doc --html --name='My Project' --output=documentations main.ts"
},
"docs": {
"description": "Launch project documentation",
"command": "deno run -A --no-lock npm:docsify-cli serve docs --port 0"
},
"file-server": {
"description": "Run file server",
"command": "deno run --allow-read --allow-net --allow-sys=networkInterfaces jsr:@std/http/file-server --no-dotfiles -p=0",
"dependencies": ["doc"]
},
"clean": {
"description": "Cleaning",
"command": "rm -rf ./documentations && rm -rf ./coverage && rm -rf cov.lcov && rm -rf html_cov && deno clean"
}
},
"unstable": ["cron", "kv"],
"fmt": {
"proseWrap": "preserve",
"semiColons": false,
"singleQuote": true,
"exclude": ["CHANGELOG.md", "notebook/"]
},
"exclude": ["documentations/"],
"workspace": [
"./library/http-status",
"./library/either",
"./library/global-context",
"./library/error-handling"
]
}