Created
October 19, 2021 08:27
-
-
Save pomle/09438517821703b39a385fdaf0f09e98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git_commit := $(shell git rev-parse --short HEAD) | |
export REACT_APP_VERSION := $(git_commit) | |
.PHONY: all | |
all: install test build start | |
.PHONY: install | |
install: | |
npm install | |
.PHONY: test | |
test: | |
npm run lint | |
CI=1 npm run test | |
.PHONY: build | |
build: install | |
npm run build | |
echo $(REACT_APP_VERSION) > build/version.txt | |
.PHONY: start | |
start: | |
npm run start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment