-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (30 loc) · 1.12 KB
/
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
26
27
28
29
30
31
32
33
all:
install-dependencies-osx-arm64:
# remove an existing install, if it exists
sudo rm -f ~/bin/tailwindcss
go install github.com/cosmtrek/air@latest
go install github.com/a-h/templ@latest
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64
chmod +x tailwindcss-macos-arm64
mv tailwindcss-macos-arm64 ~/bin/tailwindcss
npm i -g browser-sync
install-dependencies-linux-arm64:
sudo rm -f /usr/bin/tailwindcss
go install github.com/cosmtrek/air@latest
go install github.com/a-h/templ@latest
sudo curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64
sudo chmod +x tailwindcss-linux-arm64
sudo mv tailwindcss-linux-arm64 /usr/bin/tailwindcss
npm i -g browser-sync
serve:
air &\
templ generate \
-watch &\
tailwindcss \
-i 'input.css' \
-o 'static/css/styles.css' --watch & \
browser-sync start \
--files 'views/**/*.tmpl, static/css/styles.css'\
--port 3001 \
--proxy '127.0.0.1:8080' \
--middleware 'function(req, res, next) { res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); return next(); }'