-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeno.json
18 lines (18 loc) · 1.96 KB
/
deno.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"tasks": {
"all": " deno fmt && deno lint && deno task check && deno task readme && deno task test && deno task coverage ",
"all-reload": " deno fmt && deno lint && deno task check-reload && deno task readme && deno task test --reload && deno task coverage --reload",
"check": " deno task foreach-file -- deno check '{}'",
"check-reload": "deno task foreach-file -- deno check --reload '{}'",
"test": " deno test --coverage --allow-run --allow-env=VERBOSE,CF_API_EMAIL,CF_API_KEY,CF_API_TOKEN",
"coverage": " deno coverage",
"readme": " touch README.md && chmod +w README.md && ./readme/generate-readme.ts readme/README.md > README.md && deno fmt README.md; chmod -w README.md",
"release": " deno task all && test -z \"$(git status --porcelain)\" && GITHUB_TOKEN=$(gh auth token) deno run --allow-env=GITHUB_TOKEN --allow-net=api.github.com --allow-run=bash https://deno.land/x/shipit@0.6.1/shipit.ts",
"udd": " deno task foreach-file -- deno run --allow-read=. --allow-write=. --allow-net --allow-run=deno https://deno.land/x/udd@0.8.2/main.ts --test \"deno task all\" '{}'",
"udd-no-test": " deno task foreach-file -- deno run --allow-read=. --allow-write=. --allow-net --allow-run=deno https://deno.land/x/udd@0.8.2/main.ts '{}'",
"on-file-save": "sh -c 'err=$(NO_COLOR=1 deno fmt \"$1\" 2>&1); if [ $? -eq 0 ] || [ \"$err\" != \"error: No target files found.\" ]; then echo \"$err\"; fi; if [ \"$(echo \"$1\" | cut -c 1-7)\" = \"readme/\" ]; then deno task readme; fi' -s",
"list-files": " deno eval 'console.log((await (await import(\"https://deno.land/x/run_simple@2.3.0/mod.ts\")).run(\"git ls-files\")).split(\"\\n\").filter(f=>/\\.((mj|j|t)sx?|jsonc?)$/.test(f)).filter(f=>{try{return !Deno.statSync(f).isDirectory}catch{}}).join(\"\\n\"))'",
"foreach-file": "deno task list-files | sh -c 'xargs -I {} -- \"$@\"'"
},
"lock": false
}