Skip to content

Instantly share code, notes, and snippets.

@amitthk
Created September 3, 2017 19:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save amitthk/e02e95ac2b168f6c5da4d4b20fe754d1 to your computer and use it in GitHub Desktop.
Save amitthk/e02e95ac2b168f6c5da4d4b20fe754d1 to your computer and use it in GitHub Desktop.
node_version:=$(shell node -v)
npm_version:=$(shell npm -v)
timeStamp:=$(shell date +%Y%m%d%H%M%S)
.PHONY: install build archive test clean
show:
@ echo Timestamp: "$(timeStamp)"
@ echo Node Version: $(node_version)
@ echo npm_version: $(npm_version)
install:
@ npm install
build:
echo "building in production mode"
@ npm run build --prod
archive:
@ tar -czvf "dosetup-$(timeStamp).tar.gz" dist
test:
echo "test the app"
@ npm run test
clean:
echo "cleaning the dist directory"
@ rm -rf dist
@ rm -rf dist.tar.gz
INFO := @bash -c '\
printf $(YELLOW); \
echo "=> $$1"; \
printf $(NC)' SOME_VALUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment