Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
fix(prettier.mk): add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
nlevee committed Feb 11, 2022
1 parent 0bc8768 commit d30199c
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions prettier.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
BLACK := $(shell tput setaf 0)
RED := $(shell tput setaf 1)
GREEN := $(shell tput setaf 2)
YELLOW := $(shell tput setaf 3)
LIGHTPURPLE := $(shell tput setaf 4)
PURPLE := $(shell tput setaf 5)
BLUE := $(shell tput setaf 6)
WHITE := $(shell tput setaf 7)
BOLD := $(shell tput bold)
RESET := $(shell tput sgr0)

##@ Prerequesites
.PHONY: install_tools
install_tools: ## Install all the necessary tools
$(call info_colors,green,👏 Installing Precommit)
@brew install pre-commit
$(call info_colors,blue,👏 Installing Terraform Docs)
@brew install terraform-docs
$(call info_colors,purple,👏 Installing Standard-Version)
npm install -g standard-version




.PHONY: colors
##@ Support
colors: ## show all the colors
$(call info_colors,yellow,Display all colors)

@echo "${BLACK}BLACK${RESET}"
@echo "${RED}RED${RESET}"
@echo "${GREEN}GREEN${RESET}"
@echo "${YELLOW}YELLOW${RESET}"
@echo "${LIGHTPURPLE}LIGHTPURPLE${RESET}"
@echo "${PURPLE}PURPLE${RESET}"
@echo "${BLUE}BLUE${RESET}"
@echo "${WHITE}WHITE${RESET}"
@echo "${BOLD}BOLD${RESET}"

## Upper case
UC = $(shell echo '$1' | tr '[:lower:]' '[:upper:]')

define info_colors
$(info $(BOLD)$($(call UC,$1))$(2)$(RESET))
endef

.PHONY: help
##@ Help
help: ## Displays the list of functions
$(call info_colors,purple,❓ Help)
@awk 'BEGIN {FS = ":.*##"; printf "Usage: make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

0 comments on commit d30199c

Please sign in to comment.