-
Notifications
You must be signed in to change notification settings - Fork 6
/
deno.jsonc
20 lines (20 loc) · 951 Bytes
/
deno.jsonc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"tasks": {
// Allows shorthand test command with permissions baked in.
"test": "deno test --allow-read --coverage=coverage --ignore=src/testcases.ts",
"lcov": "deno coverage coverage --lcov --output=coverage/report.lcov",
"cover": "deno task clean && deno task test && deno task lcov && genhtml -o coverage/html coverage/report.lcov",
// Command to build for npm and web.
"build": "deno task clean && deno task build:npm && deno task build:web",
// Command to build for npm.
"build:npm": "deno run -A scripts/build_npm.ts",
// Command to build for web.
"build:web": "deno run -A scripts/build_web.ts",
// Command to publish to npm repository.
"publish": "cd ./npm && npm publish",
// Clean up the npm dir arbitrarily.
"clean": "rm -rf ./npm ./coverage",
// Add hook support.
"hook": "deno run --allow-read --allow-run --allow-write https://deno.land/x/[email protected]/mod.ts"
}
}