From d13b10b28b4d2823e68e3a2d5d73b336455254b5 Mon Sep 17 00:00:00 2001 From: Twilight Sparkle Date: Wed, 18 Oct 2023 07:02:49 -0400 Subject: [PATCH] update Fresh --- .gitignore | 3 +++ Dockerfile | 2 +- deno.json | 33 +++++++++++++-------------------- fresh.gen.ts | 2 +- 4 files changed, 18 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index d294d08..6f15975 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ .DS_Store .direnv .env + +# Fresh build directory +_fresh/ diff --git a/Dockerfile b/Dockerfile index 0b5ae86..0b714a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM denoland/deno:1.36.0 +FROM denoland/deno:1.37.2 # The port that your application listens to. EXPOSE 8000 diff --git a/deno.json b/deno.json index d3f6bdd..116b22e 100644 --- a/deno.json +++ b/deno.json @@ -1,22 +1,21 @@ { "tasks": { "start": "deno run --unstable -A --watch=static/,routes/ dev.ts", - "update": "deno run -A -r https://fresh.deno.dev/update ." + "update": "deno run -A -r https://fresh.deno.dev/update .", + "build": "deno run -A dev.ts build", + "preview": "deno run -A main.ts" }, "lock": false, - "compilerOptions": { - "jsx": "react-jsx", - "jsxImportSource": "preact" - }, + "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" }, "imports": { - "preact": "https://esm.sh/preact@10.15.1", - "preact/": "https://esm.sh/preact@10.15.1/", - "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.0", - "@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", - "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.2.3", + "preact": "https://esm.sh/preact@10.18.1", + "preact/": "https://esm.sh/preact@10.18.1/", + "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.2", + "@preact/signals": "https://esm.sh/*@preact/signals@1.2.1", + "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.0", "std/": "https://deno.land/std@0.178.0/", "@reading-time-estimator": "https://esm.sh/v113/reading-time-estimator@1.8.1", - "$fresh/": "https://deno.land/x/fresh@1.3.1/", + "$fresh/": "https://deno.land/x/fresh@1.5.2/", "$icons/": "https://deno.land/x/tabler_icons_tsx@0.0.2/tsx/", "$ttl": "https://deno.land/x/ttl@1.0.1/mod.ts", "@twind/core": "https://esm.sh/v111/@twind/core@1.1.3", @@ -28,12 +27,6 @@ "@freshwind": "https://deno.land/x/freshwind@4.0.0/plugin.ts", "@/": "./" }, - "lint": { - "rules": { - "tags": [ - "fresh", - "recommended" - ] - } - } -} \ No newline at end of file + "lint": { "rules": { "tags": ["fresh", "recommended"] } }, + "exclude": ["**/_fresh/*"] +} diff --git a/fresh.gen.ts b/fresh.gen.ts index d618902..b03dd5e 100644 --- a/fresh.gen.ts +++ b/fresh.gen.ts @@ -1,4 +1,4 @@ -// DO NOT EDIT. This file is generated by fresh. +// DO NOT EDIT. This file is generated by Fresh. // This file SHOULD be checked into source version control. // This file is automatically updated during development when running `dev.ts`.