From 0ca7e350bb203c445f887324f23e14cc8f2df18c Mon Sep 17 00:00:00 2001 From: Foster Hangdaan Date: Sat, 7 Sep 2024 06:56:36 -0400 Subject: [PATCH] Remove `lume` task This is to limit usage to only predefined tasks since `lume` is a CLI and can be used a variety of ways. This also means that upgrades must be performed manually. The task is still available in the form of a script as `lume.ts` but must now be invoked separately by the developer. --- 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 cd8fbd9..0470feb 100644 --- a/deno.json +++ b/deno.json @@ -8,10 +8,9 @@ ] }, "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,jsr.io,lumeland.github.io' --allow-sys=networkInterfaces --allow-env='LUME_ENV,LUME_LIVE_RELOAD,LUME_LOGS,LUME_NOCACHE,LUME_DRAFTS' -", - "build": "deno task lume", + "build": "deno run --allow-write='.' --allow-read='.' --allow-net='deno.land,cdn.deno.land,esm.sh,0.0.0.0:3000,jsr.io,lumeland.github.io' --allow-sys=networkInterfaces --allow-env='LUME_ENV,LUME_LIVE_RELOAD,LUME_LOGS,LUME_NOCACHE,LUME_DRAFTS' lume.ts", "check": "deno fmt --check && deno lint && deno check .", - "serve": "deno task lume -s", + "serve": "deno run --allow-write='.' --allow-read='.' --allow-net='deno.land,cdn.deno.land,esm.sh,0.0.0.0:3000,jsr.io,lumeland.github.io' --allow-sys=networkInterfaces --allow-env='LUME_ENV,LUME_LIVE_RELOAD,LUME_LOGS,LUME_NOCACHE,LUME_DRAFTS' lume.ts -s", "deploy": "rsync -avh --progress --delete ./_site/ podman:/srv/www/fosterhangdaan.com/" }, "imports": { 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";