Skip to content

Commit

Permalink
Add Makefile to ease maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Jul 25, 2024
1 parent 39465a9 commit a25444f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Install NodeJS dependencies
run: |
yarn install
make deps
- name: Run Gulp
run: yarn run gulp
run: make build
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a25444f

Please sign in to comment.