From b31de0d79b48c7c681b042fec27db6906573d9f3 Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Tue, 27 Aug 2024 13:37:14 +0200 Subject: [PATCH] Add Makefile to ease maintenance --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c18a286 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +################ +# Public tasks # +################ + +# This is the default task +all: help + +setup: ## Setup local environment + asdf plugin add nodejs || true + asdf plugin add yarn || true + asdf install + asdf current + +deps: ## Install dependencies + yarn install + +build: ## Build JS + yarn run gulp + + +.PHONY: all setup deps build + + +################# +# Private tasks # +################# + +help: + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + +.PHONY: help