diff --git a/app/src/helpers.tsx b/app/src/helpers.tsx new file mode 100644 index 0000000..23b16c7 --- /dev/null +++ b/app/src/helpers.tsx @@ -0,0 +1,67 @@ +//// +// Helpers for writing NOSE webapps & cli commands +// +// Be *very careful* modifying this file, as people's scripts and www's will depend +// on the API. We need to eventually version it and provide backwards compat. +// +// Access them in your command or webapp: +// import { css } from "@nose" + +import { Hono } from "hono" +import { type Handler, toResponse } from "./webapp" + +// +// command helpers +// + +// (none for now) + + + +// +// webapp helpers +// + +const transpiler = new Bun.Transpiler({ loader: 'tsx' }) + +export function css(strings: TemplateStringsArray, ...values: any[]) { + return