From 12f4ce965775d1148f9db4e7d6b79cb730c18197 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Fri, 26 Sep 2025 10:16:59 -0700 Subject: [PATCH] break everything --- app/src/helpers.tsx | 67 +++++++++++++++++++++++++++++++++++++++++ app/src/js/session.ts | 4 +-- app/src/js/shell.ts | 4 +-- app/src/shared/utils.ts | 2 +- app/src/utils.tsx | 51 +------------------------------ package.json | 2 +- 6 files changed, 74 insertions(+), 56 deletions(-) create mode 100644 app/src/helpers.tsx 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