From 0c67ccd76aa4d9a1c3233abd15451ab4ad1a9d0c Mon Sep 17 00:00:00 2001 From: Tirey Morris Date: Sat, 22 Jun 2024 20:20:21 -0700 Subject: [PATCH] add build scripts --- .gitignore | 1 + package.json | 4 +++- public/styles/uno.css | 2 ++ src/components/Layout.tsx | 2 +- src/server.tsx | 4 ++-- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 1ec0592..5a566f8 100644 --- a/.gitignore +++ b/.gitignore @@ -43,6 +43,7 @@ package-lock.json **/*.bun server +worker db.sqlite *.db diff --git a/package.json b/package.json index 7615faf..3a950da 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,9 @@ "name": "hyperwave", "version": "0.2.1", "scripts": { - "build": "bun build:css && bun build --compile ./src/server.tsx", + "build": "bun build:css && bun build:server && bun build:worker", + "build:server": "bun build --compile ./src/server.tsx", + "build:worker": "bun build --compile ./src/worker.ts", "build:css": "unocss \"src/**/*.tsx\" -o public/styles/uno.css", "css": "unocss --watch \"src/**/*.tsx\" -o public/styles/uno.css", "db": "bun run src/db.ts", diff --git a/public/styles/uno.css b/public/styles/uno.css index cbdd7be..e89783a 100644 --- a/public/styles/uno.css +++ b/public/styles/uno.css @@ -24,6 +24,7 @@ .mb-3{margin-bottom:0.75rem;} .mb-4{margin-bottom:1rem;} .mr-4{margin-right:1rem;} +.box-border{box-sizing:border-box;} .hidden{display:none;} .h-1\/4{height:25%;} .h-16{height:4rem;} @@ -67,6 +68,7 @@ .py-1{padding-top:0.25rem;padding-bottom:0.25rem;} .py-2{padding-top:0.5rem;padding-bottom:0.5rem;} .pl-3{padding-left:0.75rem;} +.pl-4{padding-left:1rem;} .pr-10{padding-right:2.5rem;} .text-center{text-align:center;} .text-3xl{font-size:1.875rem;line-height:2.25rem;} diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 6229166..fb6a71d 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -27,7 +27,7 @@ function Layout({ title, children }: LayoutProps) { - + {children} diff --git a/src/server.tsx b/src/server.tsx index 9d27bc6..be8ceee 100644 --- a/src/server.tsx +++ b/src/server.tsx @@ -21,7 +21,7 @@ app.get("/", async (c) => { return c.html(
-
+
{ d="M4 6h16M4 10h16M4 14h10M4 18h10M2 4v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4" /> -

🌊hyperwave news

+

hyperwave news