-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
27 lines (17 loc) · 889 Bytes
/
makefile
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
.PHONY: help
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
# ---------------------------------------------------------------------------------------------
install: ## Installs all dependencies
npm install
# ---------------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------
eslint: ## Starts the ESLinter
./node_modules/.bin/eslint --config ./.eslintrc.json ./src
prettier: ## Starts Prettier
./node_modules/.bin/prettier --check "src/**/*.js"
# ---------------------------------------------------------------------------------------------
pr: ## Prepares a pull request
./node_modules/.bin/prettier --write "src/**/*.js"
make eslint -B