-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 792 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (19 loc) · 792 Bytes
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
#!/usr/bin/make -f
.ONESHELL:
.SHELL := /usr/bin/bash
PORT ?= 8000
BUN ?= bunx
help: ## Show available commands
@echo "Usage: make [command]\n"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
css: ## Build tailwind CSS once
@$(BUN) @tailwindcss/cli -i src/styles/input.css -o src/styles/library.css --minify
css-watch: ## Watch tailwind CSS
@$(BUN) @tailwindcss/cli -i src/styles/input.css -o src/styles/library.css --watch
dev: css ## Start development server
@echo "Serving on http://localhost:$(PORT)"
@python3 -m http.server $(PORT)
stop: ## Stop development server
@lsof -ti tcp:$(PORT) | xargs -r kill -9 || true
open: ## Open development server in browser
@open http://localhost:$(PORT)