-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (21 loc) · 789 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
live/templ:
templ generate --watch --proxy="http://localhost:3000" --open-browser=false -v
live/server:
go run github.com/air-verse/air@latest \
--build.cmd "go build -o tmp/main.exe" --build.bin "tmp\\main.exe" --build.delay "100" \
--build.exclude_dir "node_modules" \
--build.include_ext "go" \
--build.stop_on_error "false" \
--misc.clean_on_exit true
live/tailwind:
npx tailwindcss -i ./input.css -o ./assets/css/output.css --minify --watch
live/sync_assets:
go run github.com/air-verse/air@latest \
--build.cmd "templ generate --notify-proxy" \
--build.bin "true" \
--build.delay "100" \
--build.exclude_dir "" \
--build.include_dir "assets" \
--build.include_ext "js,css"
live:
make -j4 live/templ live/server live/tailwind live/sync_assets