Files

23 lines
576 B
Makefile

# Run templ generation in watch mode
templ:
templ generate --watch --proxy="http://localhost:8080" --open-browser=true
# Run air for Go hot reload
server:
air \
--build.cmd "go build -o tmp/main ." \
--build.bin "tmp/main" \
--build.delay "100" \
--build.exclude_dir "node_modules" \
--build.include_ext "go" \
--build.stop_on_error "false" \
--misc.clean_on_exit true
# Watch Tailwind CSS changes
tailwind:
tailwindcss -i ./assets/css/input.css -o ./assets/css/output.css --watch
# Start development server with all watchers
dev:
make -j3 tailwind templ server