Skip to content

Commit

Permalink
chore: add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
derlin committed Aug 1, 2024
1 parent cf3b490 commit 39c3659
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.PHONY: all build test generate-examples lint check format

help:
@awk 'BEGIN {FS = ": .*##";} /^[$$()% 0-9a-zA-Z_-]+(\\:[$$()% 0-9a-zA-Z_-]+)*:.*?##/ { gsub(/\\:/,":", $$1); printf " \033[36m%-5s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

##@ Build

build-all: ## Build the jars
./gradlew jar
./gradlew jar -PnoPlaywright
./gradlew exec-jar

docker:
docker build --rm -t derlin/docker-compose-viz-mermaid .

generate-examples: ## Generate docs examples
./gradlew test -Pgenerate

##@ Development

format: ## Format the codebase
./gradlew ktlintFormat

##@ Checks

test: ## Run tests
./gradlew test

lint: ## Lint the codebase
./gradlew detekt ktlintCheck

check: ## Run tests and lint.
./gradlew check

0 comments on commit 39c3659

Please sign in to comment.