buildless configuration

This commit is contained in:
Seth Trowbridge 2022-12-10 10:27:23 -05:00
parent 85f0e32cac
commit e5d73147b6
8 changed files with 36 additions and 18 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
deno.lock

View File

@ -1,9 +1,15 @@
{
"compilerOptions": {"types":["./store"], "checkJs": true},
"tasks":
{
"fs": "deno run -A --no-lock https://deno.land/std@0.166.0/http/file_server.ts",
"test": "deno test --no-lock --no-check --watch store.test.ts",
"test-debug": "deno test --no-lock --no-check --inspect-brk store.test.ts"
"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"
}
}

8
deno.map.json Normal file
View File

@ -0,0 +1,8 @@
{
"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"
}
}

View File

@ -1,4 +1,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<!---->
<div id="app"></div>
<script type="module" src="src/app.js"></script>
<script type="importmap-shim" src="./deno.map.json"></script>
<script type="module-shim">import "app";</script>
<script async src="https://unpkg.com/es-module-shims@0.13.1/dist/es-module-shims.min.js"></script>

View File

@ -1,8 +1,8 @@
import React from "react";
import {html} from "htm";
import * as TW from "./twind.js";
import * as UI from "./ui.js";
import * as Store from "./store.js";
import React from "https://esm.sh/preact@10.11.3/compat";
import {html} from "https://esm.sh/htm@3.1.1/preact";
const ShadowDOM = document.querySelector("#app").attachShadow({mode: "open"});
const ShadowDiv = document.createElement("div");

View File

@ -1,4 +1,4 @@
import React from "https://esm.sh/preact@10.11.3/compat";
import React from "react";
const size = 1/6;
/** @type {Array<Store.ColumnMapping>} */

View File

@ -1,6 +1,6 @@
import * as TW from "https://esm.sh/@twind/core@1.0.1";
import TWPreTail from "https://esm.sh/@twind/preset-tailwind@1.0.1";
import TWPreAuto from "https://esm.sh/@twind/preset-autoprefix@1.0.1";
import * as TW from "@twind/core@1.0.1";
import TWPreTail from "@twind/preset-tailwind@1.0.1";
import TWPreAuto from "@twind/preset-autoprefix@1.0.1";
/** @type {TW.TwindConfig} */
export const Configure = {

View File

@ -1,5 +1,5 @@
import React from "https://esm.sh/preact@10.11.3/compat";
import { html } from "https://esm.sh/htm@3.1.1/preact";
import React from "react";
import { html } from "htm";
import * as Store from "./store.js";
/** @typedef {({children}:{children?:preact.ComponentChildren})=>preact.VNode} BasicElement */