From b038cecb08c6e95f85c1cd0d4bbfc5a2406f349f Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Sun, 16 Jul 2023 22:23:10 -0400 Subject: [PATCH] exchange boot for "entry" --- boot.deno.tsx | 6 ------ example/app.tsx | 5 ++--- example/deno.json | 7 ++++--- run-deploy.tsx | 2 +- run-serve.tsx | 2 +- 5 files changed, 8 insertions(+), 14 deletions(-) delete mode 100644 boot.deno.tsx diff --git a/boot.deno.tsx b/boot.deno.tsx deleted file mode 100644 index 29c2669..0000000 --- a/boot.deno.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import "./run-serve.tsx"; - -if(Deno.env.get("dev")) -{ - await import("./run-local.tsx"); -} \ No newline at end of file diff --git a/example/app.tsx b/example/app.tsx index e448c01..35f2003 100644 --- a/example/app.tsx +++ b/example/app.tsx @@ -1,4 +1,3 @@ -import "http://localhost:1234/boot.tsx"; import React from "react"; const CTXString = React.createContext("lol"); @@ -37,8 +36,8 @@ export default ()=> const [Store, Dispatch] = React.useReducer(reducer, {name:"seth", age:24} as Store, builder) return
-

Title????

-

subtitle

+

Title

+

subtitle

diff --git a/example/deno.json b/example/deno.json index 0f675fb..e55a9d4 100644 --- a/example/deno.json +++ b/example/deno.json @@ -2,11 +2,12 @@ "compilerOptions": { "lib": ["deno.window", "dom"] }, "imports": { - "react":"https://esm.sh/preact@10.15.1/compat" + "react":"https://esm.sh/preact@10.15.1/compat", + "entry":"./app.tsx" }, "tasks": { - "local": "deno run -A --no-lock --reload app.tsx --dev", - "serve": "deno run -A --no-lock --reload app.tsx" + "local": "deno run -A --no-lock --reload=http://localhost:1234 http://localhost:1234/run-local.tsx", + "serve": "deno run -A --no-lock --reload=http://localhost:1234 http://localhost:1234/run-serve.tsx" } } \ No newline at end of file diff --git a/run-deploy.tsx b/run-deploy.tsx index 59542cd..478419c 100644 --- a/run-deploy.tsx +++ b/run-deploy.tsx @@ -1,4 +1,4 @@ -import { load } from "https://deno.land/std/dotenv/mod.ts"; +import { load } from "https://deno.land/std@0.194.0/dotenv/mod.ts"; import { parse } from "https://deno.land/std@0.194.0/flags/mod.ts"; diff --git a/run-serve.tsx b/run-serve.tsx index 1a37f8f..a2de8f6 100644 --- a/run-serve.tsx +++ b/run-serve.tsx @@ -94,7 +94,7 @@ let Configuration:Configuration = `, {status:200, headers:{"content-type":"text/html"}});