From 1c3dd16517a372966ac8c7d9ef8e5c760276fa4d Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Mon, 22 Sep 2025 14:55:32 -0700 Subject: [PATCH] reeeeeboooot --- README.md => app/README.md | 0 {nose => app/nose}/bin/apps.tsx | 2 +- {nose => app/nose}/bin/cat.ts | 10 ++-- {nose => app/nose}/bin/echo.ts | 0 {nose => app/nose}/bin/edit.tsx | 12 ++--- {nose => app/nose}/bin/greet.ts | 0 {nose => app/nose}/bin/load.ts | 4 +- {nose => app/nose}/bin/ls.ts | 6 +-- {nose => app/nose}/bin/new.ts | 6 +-- {nose => app/nose}/bin/project.ts | 2 +- {nose => app/nose}/bin/projects.ts | 4 +- {nose => app/nose}/lib/highlight.ts | 0 app/package.json | 22 ++++++++ {public => app/public}/img/.gitignore | 0 {public => app/public}/vendor/.gitignore | 0 .../public}/vendor/C64_Pro_Mono-STYLE.woff2 | Bin {scripts => app/scripts}/config.sh | 0 {scripts => app/scripts}/deploy.sh | 0 {scripts => app/scripts}/install.sh | 0 {scripts => app/scripts}/nose-pluto.service | 0 {scripts => app/scripts}/remote-install.sh | 0 {scripts => app/scripts}/remote-restart.sh | 0 {scripts => app/scripts}/remote-start.sh | 0 {scripts => app/scripts}/remote-stop.sh | 0 {src => app/src}/commands.ts | 0 {src => app/src}/components/layout.tsx | 0 {src => app/src}/components/terminal.tsx | 0 {src => app/src}/config.ts | 3 +- {src => app/src}/css/editor.css | 0 {src => app/src}/css/main.css | 0 {src => app/src}/css/reset.css | 0 {src => app/src}/css/terminal.css | 0 {src => app/src}/dispatch.ts | 0 {src => app/src}/js/commands.ts | 0 {src => app/src}/js/completion.ts | 0 {src => app/src}/js/cursor.ts | 0 {src => app/src}/js/dom.ts | 0 {src => app/src}/js/editor.ts | 0 {src => app/src}/js/focus.ts | 0 {src => app/src}/js/history.ts | 0 {src => app/src}/js/input.ts | 0 {src => app/src}/js/main.ts | 0 {src => app/src}/js/resize.ts | 0 {src => app/src}/js/scrollback.ts | 0 {src => app/src}/js/session.ts | 0 {src => app/src}/js/shell.ts | 0 {src => app/src}/js/vram.ts | 0 {src => app/src}/js/websocket.ts | 0 {src => app/src}/server.tsx | 0 {src => app/src}/shared/types.ts | 0 {src => app/src}/shared/utils.ts | 0 {src => app/src}/shell.ts | 0 {src => app/src}/state.ts | 0 {src => app/src}/utils.tsx | 0 {src => app/src}/webapp.ts | 0 {src => app/src}/websocket.ts | 0 app/tsconfig.json | 4 ++ bin/ping.ts | 2 + bun.lock | 15 ++++-- nose/global.d.ts => global.d.ts | 0 package.json | 51 ++++++++---------- tsconfig.json | 4 +- www/ping.ts | 2 + 63 files changed, 89 insertions(+), 60 deletions(-) rename README.md => app/README.md (100%) rename {nose => app/nose}/bin/apps.tsx (92%) rename {nose => app/nose}/bin/cat.ts (91%) rename {nose => app/nose}/bin/echo.ts (100%) rename {nose => app/nose}/bin/edit.tsx (82%) rename {nose => app/nose}/bin/greet.ts (100%) rename {nose => app/nose}/bin/load.ts (75%) rename {nose => app/nose}/bin/ls.ts (83%) rename {nose => app/nose}/bin/new.ts (83%) rename {nose => app/nose}/bin/project.ts (77%) rename {nose => app/nose}/bin/projects.ts (73%) rename {nose => app/nose}/lib/highlight.ts (100%) create mode 100644 app/package.json rename {public => app/public}/img/.gitignore (100%) rename {public => app/public}/vendor/.gitignore (100%) rename {public => app/public}/vendor/C64_Pro_Mono-STYLE.woff2 (100%) rename {scripts => app/scripts}/config.sh (100%) rename {scripts => app/scripts}/deploy.sh (100%) rename {scripts => app/scripts}/install.sh (100%) rename {scripts => app/scripts}/nose-pluto.service (100%) rename {scripts => app/scripts}/remote-install.sh (100%) rename {scripts => app/scripts}/remote-restart.sh (100%) rename {scripts => app/scripts}/remote-start.sh (100%) rename {scripts => app/scripts}/remote-stop.sh (100%) rename {src => app/src}/commands.ts (100%) rename {src => app/src}/components/layout.tsx (100%) rename {src => app/src}/components/terminal.tsx (100%) rename {src => app/src}/config.ts (62%) rename {src => app/src}/css/editor.css (100%) rename {src => app/src}/css/main.css (100%) rename {src => app/src}/css/reset.css (100%) rename {src => app/src}/css/terminal.css (100%) rename {src => app/src}/dispatch.ts (100%) rename {src => app/src}/js/commands.ts (100%) rename {src => app/src}/js/completion.ts (100%) rename {src => app/src}/js/cursor.ts (100%) rename {src => app/src}/js/dom.ts (100%) rename {src => app/src}/js/editor.ts (100%) rename {src => app/src}/js/focus.ts (100%) rename {src => app/src}/js/history.ts (100%) rename {src => app/src}/js/input.ts (100%) rename {src => app/src}/js/main.ts (100%) rename {src => app/src}/js/resize.ts (100%) rename {src => app/src}/js/scrollback.ts (100%) rename {src => app/src}/js/session.ts (100%) rename {src => app/src}/js/shell.ts (100%) rename {src => app/src}/js/vram.ts (100%) rename {src => app/src}/js/websocket.ts (100%) rename {src => app/src}/server.tsx (100%) rename {src => app/src}/shared/types.ts (100%) rename {src => app/src}/shared/utils.ts (100%) rename {src => app/src}/shell.ts (100%) rename {src => app/src}/state.ts (100%) rename {src => app/src}/utils.tsx (100%) rename {src => app/src}/webapp.ts (100%) rename {src => app/src}/websocket.ts (100%) create mode 100644 app/tsconfig.json create mode 100644 bin/ping.ts rename nose/global.d.ts => global.d.ts (100%) create mode 100644 www/ping.ts diff --git a/README.md b/app/README.md similarity index 100% rename from README.md rename to app/README.md diff --git a/nose/bin/apps.tsx b/app/nose/bin/apps.tsx similarity index 92% rename from nose/bin/apps.tsx rename to app/nose/bin/apps.tsx index 1c2c112..3945d24 100644 --- a/nose/bin/apps.tsx +++ b/app/nose/bin/apps.tsx @@ -1,5 +1,5 @@ import { $ } from "bun" -import { apps } from "@/webapp" +import { apps } from "app/src/webapp" const devMode = process.env.BUN_HOT diff --git a/nose/bin/cat.ts b/app/nose/bin/cat.ts similarity index 91% rename from nose/bin/cat.ts rename to app/nose/bin/cat.ts index c1e43e8..f330d2d 100644 --- a/nose/bin/cat.ts +++ b/app/nose/bin/cat.ts @@ -2,11 +2,11 @@ import { escapeHTML } from "bun" import { readdirSync } from "fs" import { join, extname } from "path" -import type { CommandOutput } from "@/shared/types" -import { NOSE_WWW } from "@/config" -import { getState } from "@/state" -import { appPath } from "@/webapp" -import { isBinaryFile } from "@/utils" +import type { CommandOutput } from "app/src/shared/types" +import { NOSE_WWW } from "app/src/config" +import { getState } from "app/src/state" +import { appPath } from "app/src/webapp" +import { isBinaryFile } from "app/src/utils" import { highlight } from "../lib/highlight" export default async function (path: string) { diff --git a/nose/bin/echo.ts b/app/nose/bin/echo.ts similarity index 100% rename from nose/bin/echo.ts rename to app/nose/bin/echo.ts diff --git a/nose/bin/edit.tsx b/app/nose/bin/edit.tsx similarity index 82% rename from nose/bin/edit.tsx rename to app/nose/bin/edit.tsx index 275e471..e307794 100644 --- a/nose/bin/edit.tsx +++ b/app/nose/bin/edit.tsx @@ -2,12 +2,12 @@ import { escapeHTML } from "bun" import { readdirSync } from "fs" import { join, extname } from "path" -import type { CommandOutput } from "@/shared/types" -import { NOSE_WWW } from "@/config" -import { getState } from "@/state" -import { appPath } from "@/webapp" -import { isBinaryFile } from "@/utils" -import { countChar } from "@/shared/utils" +import type { CommandOutput } from "app/src/shared/types" +import { NOSE_WWW } from "app/src/config" +import { getState } from "app/src/state" +import { appPath } from "app/src/webapp" +import { isBinaryFile } from "app/src/utils" +import { countChar } from "app/src/shared/utils" export default async function (path: string) { const state = getState() diff --git a/nose/bin/greet.ts b/app/nose/bin/greet.ts similarity index 100% rename from nose/bin/greet.ts rename to app/nose/bin/greet.ts diff --git a/nose/bin/load.ts b/app/nose/bin/load.ts similarity index 75% rename from nose/bin/load.ts rename to app/nose/bin/load.ts index 908eac8..c91c179 100644 --- a/nose/bin/load.ts +++ b/app/nose/bin/load.ts @@ -1,5 +1,5 @@ -import { apps } from "@/webapp" -import { getState } from "@/state" +import { apps } from "app/src/webapp" +import { getState } from "app/src/state" export default function (project: string) { const state = getState() diff --git a/nose/bin/ls.ts b/app/nose/bin/ls.ts similarity index 83% rename from nose/bin/ls.ts rename to app/nose/bin/ls.ts index ea98b79..f0c1620 100644 --- a/nose/bin/ls.ts +++ b/app/nose/bin/ls.ts @@ -1,7 +1,7 @@ import { readdirSync } from "fs" -import { NOSE_WWW } from "@/config" -import { getState } from "@/state" -import { appPath } from "@/webapp" +import { NOSE_WWW } from "app/src/config" +import { getState } from "app/src/state" +import { appPath } from "app/src/webapp" export default function () { const state = getState() diff --git a/nose/bin/new.ts b/app/nose/bin/new.ts similarity index 83% rename from nose/bin/new.ts rename to app/nose/bin/new.ts index a89343d..4a788b5 100644 --- a/nose/bin/new.ts +++ b/app/nose/bin/new.ts @@ -1,9 +1,9 @@ import { mkdirSync, writeFileSync } from "fs" import { join } from "path" -import { apps } from "@/webapp" -import { NOSE_WWW } from "@/config" -import { isDir } from "@utils" +import { apps } from "app/src/webapp" +import { NOSE_WWW } from "app/src/config" +import { isDir } from "app/src/utils" import load from "./load" diff --git a/nose/bin/project.ts b/app/nose/bin/project.ts similarity index 77% rename from nose/bin/project.ts rename to app/nose/bin/project.ts index b1da363..7a2562f 100644 --- a/nose/bin/project.ts +++ b/app/nose/bin/project.ts @@ -1,4 +1,4 @@ -import { getState } from "@/state" +import { getState } from "app/src/state" export default function () { const state = getState() diff --git a/nose/bin/projects.ts b/app/nose/bin/projects.ts similarity index 73% rename from nose/bin/projects.ts rename to app/nose/bin/projects.ts index ddb0604..b76fb36 100644 --- a/nose/bin/projects.ts +++ b/app/nose/bin/projects.ts @@ -1,5 +1,5 @@ -import { apps } from "@/webapp" -import { getState } from "@/state" +import { apps } from "app/src/webapp" +import { getState } from "app/src/state" export default function () { const state = getState() diff --git a/nose/lib/highlight.ts b/app/nose/lib/highlight.ts similarity index 100% rename from nose/lib/highlight.ts rename to app/nose/lib/highlight.ts diff --git a/app/package.json b/app/package.json new file mode 100644 index 0000000..40ece63 --- /dev/null +++ b/app/package.json @@ -0,0 +1,22 @@ +{ + "name": "pluto", + "module": "src/server.tsx", + "type": "module", + "private": true, + "scripts": { + "start": "bun src/server.tsx", + "dev": "env BUN_HOT=1 bun --hot src/server.tsx", + "deploy": "./scripts/deploy.sh", + "push": "./scripts/deploy.sh", + "remote:install": "./scripts/remote-install.sh", + "remote:start": "./scripts/remote-start.sh", + "remote:stop": "./scripts/remote-stop.sh", + "remote:restart": "./scripts/remote-restart.sh" + }, + "peerDependencies": { + "typescript": "^5" + }, + "dependencies": { + "kleur": "^4.1.5" + } +} \ No newline at end of file diff --git a/public/img/.gitignore b/app/public/img/.gitignore similarity index 100% rename from public/img/.gitignore rename to app/public/img/.gitignore diff --git a/public/vendor/.gitignore b/app/public/vendor/.gitignore similarity index 100% rename from public/vendor/.gitignore rename to app/public/vendor/.gitignore diff --git a/public/vendor/C64_Pro_Mono-STYLE.woff2 b/app/public/vendor/C64_Pro_Mono-STYLE.woff2 similarity index 100% rename from public/vendor/C64_Pro_Mono-STYLE.woff2 rename to app/public/vendor/C64_Pro_Mono-STYLE.woff2 diff --git a/scripts/config.sh b/app/scripts/config.sh similarity index 100% rename from scripts/config.sh rename to app/scripts/config.sh diff --git a/scripts/deploy.sh b/app/scripts/deploy.sh similarity index 100% rename from scripts/deploy.sh rename to app/scripts/deploy.sh diff --git a/scripts/install.sh b/app/scripts/install.sh similarity index 100% rename from scripts/install.sh rename to app/scripts/install.sh diff --git a/scripts/nose-pluto.service b/app/scripts/nose-pluto.service similarity index 100% rename from scripts/nose-pluto.service rename to app/scripts/nose-pluto.service diff --git a/scripts/remote-install.sh b/app/scripts/remote-install.sh similarity index 100% rename from scripts/remote-install.sh rename to app/scripts/remote-install.sh diff --git a/scripts/remote-restart.sh b/app/scripts/remote-restart.sh similarity index 100% rename from scripts/remote-restart.sh rename to app/scripts/remote-restart.sh diff --git a/scripts/remote-start.sh b/app/scripts/remote-start.sh similarity index 100% rename from scripts/remote-start.sh rename to app/scripts/remote-start.sh diff --git a/scripts/remote-stop.sh b/app/scripts/remote-stop.sh similarity index 100% rename from scripts/remote-stop.sh rename to app/scripts/remote-stop.sh diff --git a/src/commands.ts b/app/src/commands.ts similarity index 100% rename from src/commands.ts rename to app/src/commands.ts diff --git a/src/components/layout.tsx b/app/src/components/layout.tsx similarity index 100% rename from src/components/layout.tsx rename to app/src/components/layout.tsx diff --git a/src/components/terminal.tsx b/app/src/components/terminal.tsx similarity index 100% rename from src/components/terminal.tsx rename to app/src/components/terminal.tsx diff --git a/src/config.ts b/app/src/config.ts similarity index 62% rename from src/config.ts rename to app/src/config.ts index cb1dcf9..459ef3c 100644 --- a/src/config.ts +++ b/app/src/config.ts @@ -5,7 +5,6 @@ export const NOSE_ICON = ` ͡° ͜ʖ ͡°` export const NOSE_SYS = resolve("./nose") export const NOSE_SYS_BIN = join(NOSE_SYS, "bin") -const homedir = process.platform === "darwin" ? `/Users/${process.env.USER}` : `/home/${process.env.USER}` -export const NOSE_DIR = resolve(join(homedir, "nose")) +export const NOSE_DIR = resolve("..") export const NOSE_BIN = join(NOSE_DIR, "bin") export const NOSE_WWW = join(NOSE_DIR, "www") \ No newline at end of file diff --git a/src/css/editor.css b/app/src/css/editor.css similarity index 100% rename from src/css/editor.css rename to app/src/css/editor.css diff --git a/src/css/main.css b/app/src/css/main.css similarity index 100% rename from src/css/main.css rename to app/src/css/main.css diff --git a/src/css/reset.css b/app/src/css/reset.css similarity index 100% rename from src/css/reset.css rename to app/src/css/reset.css diff --git a/src/css/terminal.css b/app/src/css/terminal.css similarity index 100% rename from src/css/terminal.css rename to app/src/css/terminal.css diff --git a/src/dispatch.ts b/app/src/dispatch.ts similarity index 100% rename from src/dispatch.ts rename to app/src/dispatch.ts diff --git a/src/js/commands.ts b/app/src/js/commands.ts similarity index 100% rename from src/js/commands.ts rename to app/src/js/commands.ts diff --git a/src/js/completion.ts b/app/src/js/completion.ts similarity index 100% rename from src/js/completion.ts rename to app/src/js/completion.ts diff --git a/src/js/cursor.ts b/app/src/js/cursor.ts similarity index 100% rename from src/js/cursor.ts rename to app/src/js/cursor.ts diff --git a/src/js/dom.ts b/app/src/js/dom.ts similarity index 100% rename from src/js/dom.ts rename to app/src/js/dom.ts diff --git a/src/js/editor.ts b/app/src/js/editor.ts similarity index 100% rename from src/js/editor.ts rename to app/src/js/editor.ts diff --git a/src/js/focus.ts b/app/src/js/focus.ts similarity index 100% rename from src/js/focus.ts rename to app/src/js/focus.ts diff --git a/src/js/history.ts b/app/src/js/history.ts similarity index 100% rename from src/js/history.ts rename to app/src/js/history.ts diff --git a/src/js/input.ts b/app/src/js/input.ts similarity index 100% rename from src/js/input.ts rename to app/src/js/input.ts diff --git a/src/js/main.ts b/app/src/js/main.ts similarity index 100% rename from src/js/main.ts rename to app/src/js/main.ts diff --git a/src/js/resize.ts b/app/src/js/resize.ts similarity index 100% rename from src/js/resize.ts rename to app/src/js/resize.ts diff --git a/src/js/scrollback.ts b/app/src/js/scrollback.ts similarity index 100% rename from src/js/scrollback.ts rename to app/src/js/scrollback.ts diff --git a/src/js/session.ts b/app/src/js/session.ts similarity index 100% rename from src/js/session.ts rename to app/src/js/session.ts diff --git a/src/js/shell.ts b/app/src/js/shell.ts similarity index 100% rename from src/js/shell.ts rename to app/src/js/shell.ts diff --git a/src/js/vram.ts b/app/src/js/vram.ts similarity index 100% rename from src/js/vram.ts rename to app/src/js/vram.ts diff --git a/src/js/websocket.ts b/app/src/js/websocket.ts similarity index 100% rename from src/js/websocket.ts rename to app/src/js/websocket.ts diff --git a/src/server.tsx b/app/src/server.tsx similarity index 100% rename from src/server.tsx rename to app/src/server.tsx diff --git a/src/shared/types.ts b/app/src/shared/types.ts similarity index 100% rename from src/shared/types.ts rename to app/src/shared/types.ts diff --git a/src/shared/utils.ts b/app/src/shared/utils.ts similarity index 100% rename from src/shared/utils.ts rename to app/src/shared/utils.ts diff --git a/src/shell.ts b/app/src/shell.ts similarity index 100% rename from src/shell.ts rename to app/src/shell.ts diff --git a/src/state.ts b/app/src/state.ts similarity index 100% rename from src/state.ts rename to app/src/state.ts diff --git a/src/utils.tsx b/app/src/utils.tsx similarity index 100% rename from src/utils.tsx rename to app/src/utils.tsx diff --git a/src/webapp.ts b/app/src/webapp.ts similarity index 100% rename from src/webapp.ts rename to app/src/webapp.ts diff --git a/src/websocket.ts b/app/src/websocket.ts similarity index 100% rename from src/websocket.ts rename to app/src/websocket.ts diff --git a/app/tsconfig.json b/app/tsconfig.json new file mode 100644 index 0000000..dfe7f60 --- /dev/null +++ b/app/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../tsconfig.json", + "include": ["./**/*"] + } \ No newline at end of file diff --git a/bin/ping.ts b/bin/ping.ts new file mode 100644 index 0000000..01816b7 --- /dev/null +++ b/bin/ping.ts @@ -0,0 +1,2 @@ +export default () => + "pong" \ No newline at end of file diff --git a/bun.lock b/bun.lock index c551850..b8b28df 100644 --- a/bun.lock +++ b/bun.lock @@ -2,14 +2,19 @@ "lockfileVersion": 1, "workspaces": { "": { - "name": "pluto", + "name": "nose-pluto", "dependencies": { "hono": "^4.9.7", - "kleur": "^4.1.5", }, "devDependencies": { "@types/bun": "latest", }, + }, + "app": { + "name": "pluto", + "dependencies": { + "kleur": "^4.1.5", + }, "peerDependencies": { "typescript": "^5", }, @@ -18,7 +23,7 @@ "packages": { "@types/bun": ["@types/bun@1.2.22", "", { "dependencies": { "bun-types": "1.2.22" } }, "sha512-5A/KrKos2ZcN0c6ljRSOa1fYIyCKhZfIVYeuyb4snnvomnpFqC0tTsEkdqNxbAgExV384OETQ//WAjl3XbYqQA=="], - "@types/node": ["@types/node@24.5.0", "", { "dependencies": { "undici-types": "~7.12.0" } }, "sha512-y1dMvuvJspJiPSDZUQ+WMBvF7dpnEqN4x9DDC9ie5Fs/HUZJA3wFp7EhHoVaKX/iI0cRoECV8X2jL8zi0xrHCg=="], + "@types/node": ["@types/node@24.5.2", "", { "dependencies": { "undici-types": "~7.12.0" } }, "sha512-FYxk1I7wPv3K2XBaoyH2cTnocQEu8AOZ60hPbsyukMPLv5/5qr7V1i8PLHdl6Zf87I+xZXFvPCXYjiTFq+YSDQ=="], "@types/react": ["@types/react@19.1.13", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-hHkbU/eoO3EG5/MZkuFSKmYqPbSVk5byPFa3e7y/8TybHiLMACgI8seVYlicwk7H5K/rI2px9xrQp/C+AUDTiQ=="], @@ -26,10 +31,12 @@ "csstype": ["csstype@3.1.3", "", {}, "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="], - "hono": ["hono@4.9.7", "", {}, "sha512-t4Te6ERzIaC48W3x4hJmBwgNlLhmiEdEE5ViYb02ffw4ignHNHa5IBtPjmbKstmtKa8X6C35iWwK4HaqvrzG9w=="], + "hono": ["hono@4.9.8", "", {}, "sha512-JW8Bb4RFWD9iOKxg5PbUarBYGM99IcxFl2FPBo2gSJO11jjUDqlP1Bmfyqt8Z/dGhIQ63PMA9LdcLefXyIasyg=="], "kleur": ["kleur@4.1.5", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="], + "pluto": ["pluto@workspace:app"], + "typescript": ["typescript@5.9.2", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A=="], "undici-types": ["undici-types@7.12.0", "", {}, "sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ=="], diff --git a/nose/global.d.ts b/global.d.ts similarity index 100% rename from nose/global.d.ts rename to global.d.ts diff --git a/package.json b/package.json index 079fcc3..8a3d679 100644 --- a/package.json +++ b/package.json @@ -1,31 +1,24 @@ { - "name": "pluto", - "module": "src/server.tsx", - "type": "module", - "private": true, - "scripts": { - "start": "bun src/server.tsx", - "dev": "env BUN_HOT=1 bun --hot src/server.tsx", - "deploy": "./scripts/deploy.sh", - "push": "./scripts/deploy.sh", - "remote:install": "./scripts/remote-install.sh", - "remote:start": "./scripts/remote-start.sh", - "remote:stop": "./scripts/remote-stop.sh", - "remote:restart": "./scripts/remote-restart.sh" - }, - "alias": { - "@utils": "./src/utils.tsx", - "@config": "./src/config.ts", - "@/*": "./src/*" - }, - "devDependencies": { - "@types/bun": "latest" - }, - "peerDependencies": { - "typescript": "^5" - }, - "dependencies": { - "hono": "^4.9.7", - "kleur": "^4.1.5" + "name": "nose-pluto", + "private": true, + "type": "module", + "workspaces": [ + "app" + ], + "scripts": { + "dev": "bun run --cwd ./app dev", + "start": "bun run --cwd ./app start", + "build": "bun run --cwd ./app build" + }, + "dependencies": { + "hono": "^4.9.7" + }, + "devDependencies": { + "@types/bun": "latest" + }, + "alias": { + "@utils": "./app/src/utils.tsx", + "@config": "./app/src/config.ts", + "@/*": "./app/src/*" + } } -} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index baf1e57..0759a2a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,10 +29,10 @@ "baseUrl": ".", "paths": { "@utils": [ - "src/utils.tsx" + "app/src/utils.tsx" ], "@/*": [ - "src/*" + "app/src/*" ] }, } diff --git a/www/ping.ts b/www/ping.ts new file mode 100644 index 0000000..01816b7 --- /dev/null +++ b/www/ping.ts @@ -0,0 +1,2 @@ +export default () => + "pong" \ No newline at end of file