diff --git a/deno.json b/deno.json index 6997ddd..538cf72 100644 --- a/deno.json +++ b/deno.json @@ -1,15 +1,9 @@ { - "compilerOptions": { "types": ["./store"], "checkJs": true }, - "importMap": "./deno.map.json", - "fmt": { - "options": { - "lineWidth": 256 - } - }, - "tasks": { - "dev": "deno task serve & deno task test", - "fmt": "deno fmt --watch", - "serve": "deno run -A --unstable --no-check https://deno.land/std@0.167.0/http/file_server.ts", - "test": "deno test store.test.ts --watch --no-lock --no-check" + "compilerOptions": { "types": ["*.d.ts"], "checkJs": true }, + "imports": { + "@twind/": "https://esm.sh/@twind/", + "react": "https://esm.sh/preact@10.11.3/compat", + "htm": "https://esm.sh/htm@3.1.1/preact", + "app": "./js/app.js" } -} +} \ No newline at end of file diff --git a/deno.map.json b/deno.map.json deleted file mode 100644 index 65001b1..0000000 --- a/deno.map.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "imports": { - "@twind/": "https://esm.sh/@twind/", - "react": "https://esm.sh/preact@10.11.3/compat", - "htm": "https://esm.sh/htm@3.1.1/preact", - "app": "./src/app.js" - } -} diff --git a/index.html b/index.html index 11a419f..c9e0a2a 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,12 @@ - - - -
- - - \ No newline at end of file + + + + + + + + + + + + \ No newline at end of file diff --git a/src/app.js b/js/app.js similarity index 50% rename from src/app.js rename to js/app.js index 54c6113..fcc2b29 100644 --- a/src/app.js +++ b/js/app.js @@ -15,22 +15,16 @@ TW.Init(ShadowCSS, ShadowDiv); React.render(html` <${Store.Provider}> +