mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
1
2SHELL = /bin/bash
3.SHELLFLAGS = -o pipefail -c
4
5.PHONY: help
6help: ## Print info about all commands
7 @echo "Commands:"
8 @echo
9 @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[01;32m%-20s\033[0m %s\n", $$1, $$2}'
10
11.PHONY: build-web
12build-web: ## Compile web bundle, copy to bskyweb directory
13 yarn intl:build
14 yarn build-web
15
16.PHONY: test
17test: ## Run all tests
18 NODE_ENV=test EXPO_PUBLIC_ENV=test yarn test
19
20.PHONY: lint
21lint: ## Run style checks and verify syntax
22 yarn run lint
23
24#.PHONY: fmt
25#fmt: ## Run syntax re-formatting
26# yarn prettier
27
28.PHONY: deps
29deps: ## Installs dependent libs using 'yarn install'
30 yarn install --frozen-lockfile
31
32.PHONY: nvm-setup
33nvm-setup: ## Use NVM to install and activate node+yarn
34 nvm install 18
35 nvm use 18
36 npm install --global yarn