feat: integrate nebula UI with worker-assets-gen

This commit is contained in:
Prad Nukala
2024-10-07 21:15:25 -04:00
parent e926e5b9d6
commit af6e07323b
22 changed files with 114 additions and 101 deletions
+23
View File
@@ -0,0 +1,23 @@
{
"name": "@onsonr/sonr.id",
"version": "0.0.2",
"scripts": {
"fetch:deps": "bun run .deps.mjs",
"build:css": "bunx tailwindcss -i ./global/styles/globals.css -o ./assets/css/styles.css",
"build": "bun run fetch:deps && bun run build:css",
"watch": "bunx tailwindcss -i ./global/styles/globals.css -o ./assets/css/styles.css --watch"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.15",
"alpinejs": "^3.14.1",
"htmx.org": "^1.9.12",
"tailwindcss": "^3.3.0",
"tailwindcss-motion": "^0.3.0-beta",
"typescript": "^4.9.0"
},
"dependencies": {
"node-fetch": "^3.3.2",
"sonr-es": "^0.5.3"
}
}
+1
View File
@@ -0,0 +1 @@
package handlers
+1
View File
@@ -0,0 +1 @@
package handlers
+1
View File
@@ -0,0 +1 @@
package handlers
+1
View File
@@ -0,0 +1 @@
package handlers
+20
View File
@@ -0,0 +1,20 @@
//go:build js && wasm
package main
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/internal/session"
"github.com/onsonr/sonr/pkg/nebula/routes"
"github.com/syumai/workers"
)
func main() {
s := echo.New()
s.Use(session.UseSession)
s.GET("/", routes.Home)
s.GET("/login", routes.LoginStart)
s.GET("/register", routes.RegisterStart)
workers.Serve(s)
}
+6
View File
@@ -0,0 +1,6 @@
name = "sonr-id"
main = "./build/worker.mjs"
compatibility_date = "2024-10-07"
[build]
command = "devbox run build:hway"