From 0d7c70de801d481b8341e7e68692e84a89abca8d Mon Sep 17 00:00:00 2001 From: Foster Hangdaan Date: Sun, 8 Sep 2024 11:28:58 -0400 Subject: [PATCH] Move `lume` task to its own file This is to encourage use of the predefined tasks and also means that upgrades must now be performed manually. --- deno.json | 5 ++--- lume.ts | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 lume.ts diff --git a/deno.json b/deno.json index c74b807..b926120 100644 --- a/deno.json +++ b/deno.json @@ -3,9 +3,8 @@ "lume/": "https://deno.land/x/lume@v2.2.0/" }, "tasks": { - "lume": "echo \"import 'lume/cli.ts'\" | deno run --allow-write='.' --allow-read='.' --allow-net='deno.land,cdn.deno.land,esm.sh,0.0.0.0:3000' --allow-sys=networkInterfaces --allow-env='LUME_ENV,LUME_LIVE_RELOAD,LUME_LOGS,LUME_NOCACHE,LUME_DRAFTS' -", - "build": "deno task lume", - "serve": "deno task lume -s", + "build": "deno run --allow-write='.' --allow-read='.' --allow-net='deno.land,cdn.deno.land,esm.sh,0.0.0.0:3000' --allow-sys=networkInterfaces --allow-env='LUME_ENV,LUME_LIVE_RELOAD,LUME_LOGS,LUME_NOCACHE,LUME_DRAFTS' lume.ts", + "serve": "deno run --allow-write='.' --allow-read='.' --allow-net='deno.land,cdn.deno.land,esm.sh,0.0.0.0:3000' --allow-sys=networkInterfaces --allow-env='LUME_ENV,LUME_LIVE_RELOAD,LUME_LOGS,LUME_NOCACHE,LUME_DRAFTS' lume.ts -s", "check": "deno fmt --check && deno lint && deno check .", "deploy": "rsync -avh --progress --delete ./_site/ podman:/srv/www/pay.fosterhangdaan.com/" }, diff --git a/lume.ts b/lume.ts new file mode 100644 index 0000000..7d21deb --- /dev/null +++ b/lume.ts @@ -0,0 +1 @@ +import "lume/cli.ts";