feat: support 1.38 flags

This commit is contained in:
Simon Lecoq
2023-11-02 21:55:45 -04:00
parent 18bdf2b271
commit 49351f4506
5 changed files with 58 additions and 7 deletions

View File

@@ -1,15 +1,24 @@
{
"tasks": {
"make": "deno run --allow-env --allow-read --allow-write=.deno-make.json --allow-run=deno ./mod.ts $0"
"make": "deno run --allow-env --allow-read --allow-write=.deno-make.json --allow-run=deno ./mod.ts $0",
"test": "deno task make test",
"code": "deno task make code",
"ci": "deno task make ci"
},
"+tasks": {
"test": {
"description": "🧪 Run tests and benchmarks. Print collected coverage",
"task": [
// Setup test environment
"mkdir -p .coverage &&",
"rm -rf .coverage &&",
"(echo '' > tests/.env) &&",
"(echo '{}' > tests/.imports.json) &&",
// Run tests and print coverage
"deno test &&",
"deno coverage .coverage &&",
"rm -rf tests/.[!.]* tests/*.exe"
// Cleanup test environment
"rm -rf .coverage tests/.[!.]* tests/*.exe"
],
"deno": {
"test": {
@@ -33,8 +42,15 @@
"task": "deno lint && deno fmt"
},
"code:check": {
"description": "🤖 Lint and check code fomatting",
"description": "🫧 Lint and check code fomatting",
"task": "deno lint && deno fmt --check"
},
"ci": {
"description": "🤖 CI checks",
"task": [
"deno task make code:check",
"deno task make test"
]
}
},
"fmt": {