aggiornato per uso di taiwind
This commit is contained in:
30
Makefile
30
Makefile
@@ -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 ./...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user