-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (32 loc) · 745 Bytes
/
Makefile
File metadata and controls
48 lines (32 loc) · 745 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Docker
IMAGE_NAME := $(shell yq '.services.cookcli.image' docker-compose.yml)
all: build
build: assets
cargo build
css:
npm run build-css
css-watch:
npm run watch-css
js:
npm run build-js
assets: css js
dev_assets:
npm run watch-css & npm run watch-js
release: assets
cargo build --release
dev_server: assets
cargo run -- server ./seed --port 9080
dev: css-watch
cargo run -- server ./seed
test:
cargo test
clean:
cargo clean
rm -rf static/css/tailwind.css
rm -rf static/js/editor.bundle.js
docker-build:
docker build -t $(IMAGE_NAME) .
docker-push:
docker push $(IMAGE_NAME)
docker: docker-build docker-push
.PHONY: all build release dev_server test clean css js assets dev_assets docker-build docker-push docker