-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
24 lines (21 loc) · 808 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
# Run templ generation in watch mode to detect all .templ files and
# re-create _templ.txt files on change, then send reload event to browser.
# Default url: http://localhost:7331
templ:
templ generate --watch --proxy="http://localhost:8090" --open-browser=false -v
# Run air to detect any go file changes to re-build and re-run the server.
server:
air \
--build.cmd "go build -o tmp/bin/main ./main.go" \
--build.bin "tmp/bin/main" \
--build.delay "100" \
--build.exclude_dir "node_modules" \
--build.include_ext "go" \
--build.stop_on_error "false" \
--misc.clean_on_exit true
# Run tailwindcss to generate the styles.css bundle in watch mode.
tailwind:
tailwindcss -i ./assets/css/input.css -o ./assets/css/output.css --watch
# Start development server
dev:
make -j3 templ server tailwind