From 467d1c9b27ad39afc41746246119c1cf405b2488 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 26 Sep 2024 13:05:09 -0400 Subject: [PATCH] refactor: rename script to --- nebula/nebula.go | 1 + nebula/package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nebula/nebula.go b/nebula/nebula.go index f5e9b1a82..23b9ad17f 100644 --- a/nebula/nebula.go +++ b/nebula/nebula.go @@ -11,6 +11,7 @@ import ( //go:embed assets var embeddedFiles embed.FS +// UseAssets is a middleware that serves static files from the embedded assets func UseAssets(e *echo.Echo) echo.HandlerFunc { embFs := http.FS(os.DirFS("assets")) assets := http.FileServer(embFs) diff --git a/nebula/package.json b/nebula/package.json index 344acf050..ab5bccc4b 100644 --- a/nebula/package.json +++ b/nebula/package.json @@ -1,9 +1,9 @@ { "scripts": { - "fetch:dependencies": "bun run .deps.mjs", + "fetch:deps": "bun run .deps.mjs", "build:ts": "tsc", "build:css": "bunx tailwindcss -i ./src/styles.css -o ./assets/css/styles.css", - "build": "bun run fetch:dependencies && bun run build:ts && bun run build:css", + "build": "bun run fetch:deps && bun run build:ts && bun run build:css", "watch:ts": "tsc -w", "watch:css": "bunx tailwindcss -i ./src/styles.css -o ./assets/css/styles.css --watch", "watch": "bun run watch:ts & bun run watch:css"