-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 1009 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 1009 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
.PHONY: default
default: | help
.PHONY: help
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST)\
|awk -F ':[[:space:]]*## ' '{split($$1, a, ":"); printf "%-30s %s\n", a[2], $$2}'
.PHONY: build
build: ## Build the app
pnpm install --ignore-scripts
.PHONY: run-dev
run-dev: ## Run the app in dev mode
pnpm run dev
.PHONY: bump-version-patch
bump-version-patch: ## Bump patch version, e.g. 0.0.1 -> 0.0.2
pnpm version patch
.PHONY: bump-version-minor
bump-version-minor: ## Bump minor version, e.g. 0.0.1 -> 0.1.0
pnpm version minor
.PHONY: bump-version-major
bump-version-major: ## Bump major version, e.g. 0.0.1 -> 1.0.0
pnpm version major
SHELL?=bash
.PHONY: shell
develop: ## Start the nix development shell
nix develop -c $(SHELL)
.PHONY: build-local-docker
build-docker-local: ## Build the docker container
docker build --platform linux/amd64 -t dapla-ctrl:latest .
include .env.local
.PHONY: run-docker-local
run-docker-local: ## Run the docker container
./bin/run-docker.sh