Skip to content

Instantly share code, notes, and snippets.

@pomle
Created October 19, 2021 08:27
Show Gist options
  • Save pomle/09438517821703b39a385fdaf0f09e98 to your computer and use it in GitHub Desktop.
Save pomle/09438517821703b39a385fdaf0f09e98 to your computer and use it in GitHub Desktop.
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