From ad7ab6db865adfc66713291c319ff087d2167aed Mon Sep 17 00:00:00 2001 From: monoid Date: Thu, 26 Oct 2023 22:12:16 +0900 Subject: [PATCH] chore: version update --- .gitignore | 3 +++ deno.json | 34 ++++++++++++++-------------------- fresh.gen.ts | 8 +++++--- twind.config.ts | 9 +++++++-- 4 files changed, 29 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 89ebcc9..c744e81 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,6 @@ stock.db .env.test.local .env.production.local .env.local + +# Fresh build directory +_fresh/ diff --git a/deno.json b/deno.json index d87aafd..e0067de 100644 --- a/deno.json +++ b/deno.json @@ -3,31 +3,25 @@ "tasks": { "start": "deno run -A --watch=static/,routes/ dev.ts", "prod_start": "deno run -A main.ts", - "update": "deno run -A -r https://fresh.deno.dev/update ." - }, - "lint": { - "rules": { - "tags": [ - "fresh", - "recommended" - ] - } + "update": "deno run -A -r https://fresh.deno.dev/update .", + "build": "deno run -A dev.ts build", + "preview": "deno run -A main.ts" }, + "lint": { "rules": { "tags": ["fresh", "recommended"] } }, "imports": { - "$fresh/": "https://deno.land/x/fresh@1.3.1/", - "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", + "$fresh/": "https://deno.land/x/fresh@1.5.2/", + "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", "auto-animate": "https://esm.sh/@formkit/auto-animate@0.7.0", "auto-animate/": "https://esm.sh/@formkit/auto-animate@0.7.0/", "twind": "https://esm.sh/twind@0.16.19", "twind/": "https://esm.sh/twind@0.16.19/", - "$std/": "https://deno.land/std@0.193.0/" + "$std/": "https://deno.land/std@0.203.0/", + "kysely": "npm:kysely@^0.25.0" }, - "compilerOptions": { - "jsx": "react-jsx", - "jsxImportSource": "preact" - } + "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" }, + "exclude": ["**/_fresh/*"] } diff --git a/fresh.gen.ts b/fresh.gen.ts index fbf3396..387716d 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`. @@ -13,7 +13,8 @@ import * as $7 from "./routes/greet/[name].tsx"; import * as $8 from "./routes/index.tsx"; import * as $9 from "./routes/pages/[name].tsx"; import * as $$0 from "./islands/Counter.tsx"; -import * as $$1 from "./islands/StockList.tsx"; +import * as $$1 from "./islands/Search.tsx"; +import * as $$2 from "./islands/StockList.tsx"; const manifest = { routes: { @@ -30,7 +31,8 @@ const manifest = { }, islands: { "./islands/Counter.tsx": $$0, - "./islands/StockList.tsx": $$1, + "./islands/Search.tsx": $$1, + "./islands/StockList.tsx": $$2, }, baseUrl: import.meta.url, }; diff --git a/twind.config.ts b/twind.config.ts index 2a7ac27..2b8331f 100644 --- a/twind.config.ts +++ b/twind.config.ts @@ -1,5 +1,10 @@ -import { Options } from "$fresh/plugins/twind.ts"; +import { defineConfig, Preset } from "https://esm.sh/@twind/core@1.1.3"; +import presetTailwind from "https://esm.sh/@twind/preset-tailwind@1.1.4"; +import presetAutoprefix from "https://esm.sh/@twind/preset-autoprefix@1.0.7"; export default { + ...defineConfig({ + presets: [presetTailwind() as Preset, presetAutoprefix()], + }), selfURL: import.meta.url, -} as Options; +}