-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeno.jsonc
74 lines (67 loc) · 2.03 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
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
{
"tasks": {
// common
"dev": "deno run -A --watch src/main.ts",
"start": "deno run src/main.ts",
"debug": "deno run --inspect-brk src/main.ts",
// server
"server": "deno run --allow-net --allow-env --allow-read=. src/server.ts",
"server-timeout": "timeout 5 deno task server || exit 0",
"json-server": "npx json-server db.json",
// "json-server": "deno run -A --unstable npm:json-server db.json",
// build
"build-npm": "deno run -A https://deno.land/x/dnt_prompt/main.ts",
"publish-npm": "deno task build-npm && npm publish",
// release
"version": "deno run -A https://deno.land/x/version/index.ts",
"release": "deno task version patch && git push --tags origin main",
// test
"test": "deno test -A --ignore=.cache --no-prompt --coverage=.coverage",
"test-doc": "deno task test --doc",
"test-cov": "deno task test && deno coverage .coverage",
"test-watch": "deno task test --watch test",
"test-server": "deno task server-timeout & sleep 1 && TEST_SERVER=1 deno task test -- --filter=[server]",
// bench
"bench": "deno bench -A --unstable --ignore=.cache --no-prompt",
// lint
"ci": "deno lint && deno fmt --check && deno task test",
// chore
"cache": "DENO_DIR=.cache deno cache --lock=lock.json --lock-write src/deps.ts test/deps.ts",
"udd": "deno run -A https://deno.land/x/udd/main.ts --test='deno task test' 'src/**/*.ts' 'test/**/*.ts'"
},
"lint": {
"files": {
"exclude": [
".cache",
".git",
".npm",
".coverage",
"node_modules/**",
"vendor/**"
]
},
"rules": {
"exclude": []
}
},
"fmt": {
"files": {
"exclude": [
".cache",
".git",
".coverage",
"node_modules/**",
"vendor/**",
".npm"
]
},
"options": {
"useTabs": false,
// "lineWidth": 80,
// "indentWidth": 2,
"singleQuote": false,
"proseWrap": "always"
}
}
// "importMap":"vendor/import_map.json"
}