alice-lg/client/Makefile
2019-03-08 08:20:37 +01:00

54 lines
1005 B
Makefile

#
# Build Helper
# ------------
#
# Create a full build by just typing make.
# This will automatically install all dependencies from NPM and
# start the build process.
#
# While developing, you might want to use 'make watch'
# which will automatically restart gulp in case something went
# wrong.
#
VERSION=$(shell cat ../VERSION)
DIST_BUILDS=../../birdseye-static/builds
DIST=birdseye-ui-dist-$(VERSION).tar.gz
# == END CONFIGURATION ==
DIST_BUILD=$(addprefix $(DIST_BUILDS)/, $(DIST))
all: client
deps:
@echo "Installing dependencies"
yarn install
client: deps
@echo "Building alice UI"
gulp
client_prod: deps
@echo "Building alice UI (production)"
DISABLE_LOGGING=1 NODE_ENV=production gulp
watch:
while true; do gulp watch; done
$(DIST_BUILD): deps client_prod
@echo "Creating alice ui distribution"
tar cvzf $(DIST) build/
mv $(DIST) $(DIST_BUILDS)
@echo ""
@echo "Done. Don't forget to push the dist to github"
clean:
rm -rf build/
dist: $(DIST_BUILD)
echo $(DIST_BUILD)