aggiornato per uso di taiwind

This commit is contained in:
fabio
2026-02-23 13:46:44 +01:00
parent 275d3df3f1
commit 3fc01cc4f7
39 changed files with 5743 additions and 1381 deletions

View File

@@ -1,20 +1,22 @@
.PHONY: dev ui-build ui-dev css-build css-dev test db-reset fmt
.PHONY: tw-build tw-watch htmx-copy flowbite-copy assets server test db-reset fmt
dev:
tw-build:
npm --prefix flowbite-ui run tw:build
tw-watch:
npm --prefix flowbite-ui run tw:watch
htmx-copy:
mkdir -p web/static/vendor && cp flowbite-ui/node_modules/htmx.org/dist/htmx.min.js web/static/vendor/htmx.min.js
flowbite-copy:
mkdir -p web/static/vendor && cp flowbite-ui/node_modules/flowbite/dist/flowbite.min.js web/static/vendor/flowbite.js
assets: htmx-copy flowbite-copy tw-build
server:
go run ./cmd/server
ui-build:
cd ui-kit && npm i && npm run build && npm run css:build
ui-dev:
cd ui-kit && npm i && npm run dev
css-build:
cd ui-kit && npm i && npm run css:build
css-dev:
cd ui-kit && npm i && npm run css:dev
test:
go test ./...