Skip to content

Commit

Permalink
Fix PHONY
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Petrov <[email protected]>
  • Loading branch information
mike-petrov committed Oct 12, 2023
1 parent 41a918f commit e895927
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,33 @@ $(SITE_DIR):
-w /usr/src/app node:14-alpine \
sh -c 'npm install && REACT_APP_VERSION=$(VERSION) npm run build && chown -R $$CURRENT_UID: $(SITE_DIR)'

.PHONY: start
start:
docker run \
-p $(PORT):3000 \
-v `pwd`:/usr/src/app \
-w /usr/src/app node:14-alpine \
sh -c 'npm install --silent && npm run build && npm install -g serve && serve -s $(SITE_DIR) -p 3000'

.PHONY: release
release: $(SITE_DIR)
cp $(SITE_DIR)/index.html $(SITE_DIR)/agreement
@ln -sf $(SITE_DIR) $(RELEASE_DIR)
@tar cfvhz $(RELEASE_PATH) $(RELEASE_DIR)

.PHONY: clean
clean:
@echo "Cleaning up ..."
@rm -rf $(SITE_DIR) $(RELEASE_DIR) $(RELEASE_PATH)

.PHONY: release_name
release_name:
@echo $(RELEASE_PATH)

.PHONY: version
version:
@echo $(VERSION)

.PHONY: test
test:
@npm run test

0 comments on commit e895927

Please sign in to comment.