-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
38 lines (27 loc) · 776 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
35
36
37
38
.POSIX:
.PHONY: default dev fmt lint test test-unit test-load container update ci
default: fmt lint target/release/blog
target/release/blog: src/ Cargo.toml
cargo build --release
dev:
cargo watch -L debug --exec 'run'
fmt:
cargo fmt
lint:
cargo clippy -- --deny warnings
test: lint test-unit
test-unit:
cargo test
test-load:
k6 run tests/load/index.js
container:
docker build . --tag blog
update:
nix flake update
cargo update
curl --silent --show-error --location 'https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.indigo.min.css' --output public/pico.min.css
curl --silent --show-error --location 'https://unpkg.com/[email protected]' --output public/htmx.min.js
ci:
@mkdir -p "${CACHE_DIR}/target"
@ln -s "${CACHE_DIR}/target" "target"
@make test