modes #23

Merged
SethTrowbridge merged 7 commits from modes into master 2023-04-29 21:30:28 -04:00
3 changed files with 10 additions and 3 deletions
Showing only changes of commit 1b16b08788 - Show all commits

View File

@ -2,13 +2,13 @@
"compilerOptions": {"lib": ["deno.window", "dom"]},
"imports":
{
"react": "https://esm.sh/preact@10.13.2/compat",
"react": "https://esm.sh/stable/preact@10.13.2/compat",
"preact": "https://esm.sh/stable/preact@10.13.2/",
"@deep/": "./deep/",
"@eno/app": "./app.tsx",
"@eno/iso": "http://localhost:4507/lib/iso.tsx"
},
"tasks": {
"host": "deno run -A --unstable https://deno.land/std@0.181.0/http/file_server.ts",
"dev": "deno run -A --unstable --reload=http://localhost:4507/ --no-lock --config=deno.jsonc 'http://localhost:4507/server.tsx'"
"dev": "deno run -A --unstable --reload=http://localhost:4507/ --no-lock app.tsx"
}
}

View File

@ -7,6 +7,10 @@ export const CSS = {
hash:false
};
if(Deno)
{
import(import.meta.resolve("../../server.tsx")).then(()=>{console.log("...imported!");});
}
type Meta = {title:string, description:string, keywords:string, image:string, canonical:string }
type MetaKeys = keyof Meta;

View File

@ -8,6 +8,8 @@ import * as Twind from "https://esm.sh/@twind/core@1.1.3";
import React from "react";
import * as Iso from "@eno/iso";
Deno.env.set("initialized", "true");
/**
* Setup a transpiler.
* @param inDevMode When true, starts a file-watcher
@ -275,6 +277,7 @@ const Path = {
};
console.log(Path);
console.log(`Dev Mode: ${DevMode}`);
console.log(`Args seen: ${Deno.args}`);
const {Transpileable, TranspileURL, SocketsHandler} = Transpiler(DevMode);
const {Imports, App, TwindInst, Error} = await Configure(DevMode, Path.LibDir);