Add deno task check to perform full project checks

This commit is contained in:
Pablo Baleztena 2024-10-16 11:59:11 -03:00
parent 6d2218f9f5
commit 0b05168544
4 changed files with 3 additions and 6 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
. "$(dirname -- "$0")/_/hook.sh" . "$(dirname -- "$0")/_/hook.sh"
deno run -A npm:lint-staged deno task check

View File

@ -1,4 +0,0 @@
{
"*": ["deno fmt --check"],
"*.ts": ["deno lint --fix"]
}

View File

@ -7,6 +7,6 @@
"usernamehw.errorlens", "usernamehw.errorlens",
"bourhaouta.tailwindshades", "bourhaouta.tailwindshades",
"austenc.tailwind-docs", "austenc.tailwind-docs",
"denoland.vscode-deno", "denoland.vscode-deno"
] ]
} }

View File

@ -2,6 +2,7 @@
"tasks": { "tasks": {
"test": "deno test --allow-all --unstable-ffi", "test": "deno test --allow-all --unstable-ffi",
"test:dev": "deno test --allow-all --unstable-ffi --watch", "test:dev": "deno test --allow-all --unstable-ffi --watch",
"check": "deno fmt && deno lint --fix && deno check **/*.ts && deno task test",
"hook": "deno run --allow-read --allow-run --allow-write https://deno.land/x/deno_hooks@0.1.1/mod.ts" "hook": "deno run --allow-read --allow-run --allow-write https://deno.land/x/deno_hooks@0.1.1/mod.ts"
}, },
"workspace": [ "workspace": [