{ "tasks": { "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 &&", // Cleanup test environment "rm -rf .coverage tests/.[!.]*" ], "deno": { "test": { "coverage": ".coverage", "doc": true, "traceOps": true, "permissions": { "read": true, "env": ["TEST_INHERIT"], "write": [".deno-make.json"], "run": ["deno"] } } }, "env": { "DINOSAUR": "🦕" } }, "code": { "description": "🧼 Lint and format code", "task": "deno lint && deno fmt" }, "code:check": { "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": { "lineWidth": 120, "semiColons": false, "exclude": [".coverage", ".deno-make.json"] } }