-
Notifications
You must be signed in to change notification settings - Fork 2
/
deno.json
55 lines (55 loc) · 2.25 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
{
"compilerOptions": {
"strict": true,
"useUnknownInCatchVariables": true,
"noImplicitOverride": true
},
"fmt": {
"exclude": [
".git",
"cov",
"**/.nyc_output",
"**/npm",
"**/node_modules"
]
},
"importMap": "./test_import_map.json",
"lint": {
"exclude": [
".git",
"cov",
"**/.nyc_output",
"**/npm",
"**/node_modules",
"examples/nifty-lil-tricks-testing-nodejs"
]
},
"test": {
"exclude": [
"examples",
"**/npm",
"**/node_modules"
]
},
"tasks": {
"clean": "rm -rf ./cov && rm -rf ./html_cov && rm -rf ./npm",
"check": "deno check *.ts examples/*.ts plugin_*/**/*.ts",
"test:examples": "deno test --parallel --doc --allow-all examples/*.ts",
"test:examples:nodejs": "cd examples/nifty-lil-tricks-testing-nodejs && npm install && npm test",
"test": "deno test --parallel --doc --allow-all --coverage=./cov",
"test:all": "deno task test && deno task test:examples",
"test:browser": "git grep --name-only \"This module is browser compatible.\" | grep -v deno.json | grep -v .github/workflows | grep -v _tools | xargs deno check --config browser-compat.tsconfig.json",
"fmt:licence-headers": "deno run --allow-read --allow-write ./_tools/check_licence.ts",
"lint:deprecations": "deno run --allow-read --allow-net ./_tools/check_deprecations.ts",
"lint:doc-imports": "deno run --allow-env --allow-read ./_tools/check_doc_imports.ts",
"lint:check-assertions": "deno run --allow-read --allow-net ./_tools/check_assertions.ts",
"lint": "deno lint && deno fmt --check && deno task fmt:licence-headers --check && deno task lint:deprecations && deno task lint:doc-imports && deno task lint:check-assertions",
"reload": "deno cache --reload *.ts plugin_*/**/*.ts examples/*.ts _tools/*.ts",
"pre-commit": "deno task lint && deno task check && deno task test:all",
"build": "deno run -A _tools/build_npm.ts",
"cov": "deno task clean && deno task test && deno coverage --exclude=fixtures ./cov --lcov --output=cov.lcov",
"cov:check": "deno task cov && lcov --summary cov.lcov --fail-under-lines 100",
"report": "deno task cov && genhtml -o html_cov cov.lcov && open html_cov/index.html"
},
"lock": false
}