From 6bf3d3b5d1865014ebd099a9d048409489bde406 Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Sat, 4 Nov 2023 19:48:52 +0000 Subject: [PATCH] chore: update deno.jsonc --- deno.jsonc | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/deno.jsonc b/deno.jsonc index 0c961f7..f2542c0 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -3,6 +3,8 @@ "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", + "check": "deno task make check", + "cache": "deno task make cache", "ci": "deno task make ci" }, "+tasks": { @@ -41,14 +43,31 @@ "description": "🧼 Lint and format code", "task": "deno lint && deno fmt" }, - "code:check": { + "check": { "description": "🫧 Lint and check code fomatting", - "task": "deno lint && deno fmt --check" + "task": "deno lint && deno fmt", + "deno": { + "fmt": { + "check": true + } + } + }, + "cache": { + "description": "📦 Cache dependencies", + "task": "deno cache *.ts", + "deno": { + "cache": { + "modules": { + "reload": true, + "check": "all" + } + } + } }, "ci": { "description": "🤖 CI checks", "task": [ - "deno task make code:check &&", + "deno task make check &&", "deno task make test" ] }