-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
deno.jsonc
110 lines (110 loc) · 3.34 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"tasks": {
"lint": {
"description": "Lint code, documentation, package and formatting\n- `--check`: skip actual formatting (check only)",
"command": "cd $INIT_CWD && deno lint && deno doc --lint **/mod.ts && deno publish --quiet --dry-run --allow-dirty && deno fmt"
},
"test": {
"description": "Test code and print detailed coverage",
"command": "cd $INIT_CWD && deno task --cwd=$INIT_CWD test:deno --doc --clean --coverage && deno task --cwd=$INIT_CWD test:node && deno task --cwd=$INIT_CWD test:bun && deno coverage --detailed --include=$INIT_CWD --exclude='((\\.m?js)|(test\\.ts))$'"
},
"test:deno": {
"description": "Test code (deno)",
"command": "cd $INIT_CWD && deno test $(deno task flags)"
},
"test:node": {
"description": "Test code (node)",
"command": "cd $INIT_CWD && npx tsx --test *_test.ts"
},
"test:bun": {
"description": "Test code (bun)",
"command": "cd $INIT_CWD && bun test"
},
"bench": {
"description": "Run benchmarks",
"command": "cd $INIT_CWD && deno bench --allow-read --allow-write=bench || true"
},
"qa": {
"description": "Test and lint code",
"command": "deno task test && deno task lint"
},
"make:bump": {
"description": "Bump package version",
"command": "deno run --allow-read --allow-write=. .github/deno_bump.ts"
},
"make:readme": {
"description": "Generate README.md",
"command": "deno run --allow-env=LOG_LEVEL --allow-read=. --allow-write=README.md .github/deno_readme.ts && deno fmt README.md"
},
"make:coverage": {
"description": "Generate html coverage",
"command": "deno task test:deno --clean --coverage --fail-fast --reporter=dot && deno coverage --exclude=.js --html && sleep 1 && deno run --allow-read --allow-net=img.shields.io --allow-write=coverage jsr:@libs/bundle/ts/cli/coverage --root=coverage"
},
"jq": {
"description": "Query in JSONC",
"command": "deno run --allow-read .github/deno_config_parser.ts --cwd=$INIT_CWD"
},
"flags": {
"description": "Compute permissions flags",
"command": "deno run --allow-read .github/deno_flags.ts --cwd=$INIT_CWD"
}
},
"unstable": [
"kv"
],
"nodeModulesDir": "auto",
"imports": {
"@std/cli": "jsr:@std/cli@1",
"@std/fmt": "jsr:@std/fmt@1",
"@std/jsonc": "jsr:@std/jsonc@1",
"@std/path": "jsr:@std/path@1"
},
"test:permissions": true,
"fmt": {
"semiColons": false,
"lineWidth": 280,
"proseWrap": "preserve",
"exclude": [
"**/node_modules",
"**/coverage",
"**/package.json",
"**/package-lock.json",
"**/wasm_*",
"**/*.mjs"
]
},
"lint": {
"rules": {
"include": [
"ban-untagged-todo",
"eqeqeq",
"no-console",
"no-eval",
"no-external-import",
"no-inferrable-types",
"no-sync-fn-in-async-fn",
"no-throw-literal",
"single-var-declarator",
"triple-slash-reference"
]
},
"exclude": [
"**/node_modules",
"**/coverage",
"**/wasm_*",
"**/*.mjs"
]
},
"publish": {
"exclude": [
".devcontainer/**",
".github/**",
"**/*_test.ts",
"CONTRIBUTING.md",
"vercel.json"
]
},
"compilerOptions": {
"useUnknownInCatchVariables": false
}
}