mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
refactor: rename script to
This commit is contained in:
parent
3638acd216
commit
467d1c9b27
@ -11,6 +11,7 @@ import (
|
|||||||
//go:embed assets
|
//go:embed assets
|
||||||
var embeddedFiles embed.FS
|
var embeddedFiles embed.FS
|
||||||
|
|
||||||
|
// UseAssets is a middleware that serves static files from the embedded assets
|
||||||
func UseAssets(e *echo.Echo) echo.HandlerFunc {
|
func UseAssets(e *echo.Echo) echo.HandlerFunc {
|
||||||
embFs := http.FS(os.DirFS("assets"))
|
embFs := http.FS(os.DirFS("assets"))
|
||||||
assets := http.FileServer(embFs)
|
assets := http.FileServer(embFs)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"fetch:dependencies": "bun run .deps.mjs",
|
"fetch:deps": "bun run .deps.mjs",
|
||||||
"build:ts": "tsc",
|
"build:ts": "tsc",
|
||||||
"build:css": "bunx tailwindcss -i ./src/styles.css -o ./assets/css/styles.css",
|
"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:ts": "tsc -w",
|
||||||
"watch:css": "bunx tailwindcss -i ./src/styles.css -o ./assets/css/styles.css --watch",
|
"watch:css": "bunx tailwindcss -i ./src/styles.css -o ./assets/css/styles.css --watch",
|
||||||
"watch": "bun run watch:ts & bun run watch:css"
|
"watch": "bun run watch:ts & bun run watch:css"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user