-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (23 loc) · 956 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
26
27
28
29
30
31
32
33
34
hmr: ## Start the hot module replacement server
$(MAKE) -j2 sassWatch templProxy
templProxy: up ## Start the hot module replacement server for templ
templ generate --watch --proxy="http://localhost:1323" --cmd="go run cmd/gooal/main.go"
sassWatch: ## Watch SASS changes
sass --watch .
sassGen: ## Compile and minify SASS
sass --style compressed .
templ: ## Generate the templates
templ generate
build: templ sassGen ## Generate the templates and compile the SASS
start: up ## Generate templates and start the server
go run cmd/gooal/main.go
up: ## Start the docker containers
docker compose up -d
down: ## Stop the docker containers
docker compose down
dbCli: up ## Connect to the mongo db
docker exec -it gooal-mongo-1 mongosh --username root --password example
tests: ## Run the tests
go test -v ./...
help:
@sed -n -E "s/(^[^ ]+):.* ## (.*)/`printf "\033[32m"`\1|`printf "\033[0m"` \2/p" $(MAKEFILE_LIST) | sort | column -t -s '|'