2017-05-16 13:34:00 +02:00
|
|
|
#
|
|
|
|
# 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: deps client
|
|
|
|
|
|
|
|
deps:
|
|
|
|
@echo "Installing dependencies"
|
|
|
|
npm install
|
|
|
|
|
|
|
|
client:
|
2017-05-23 13:58:49 +02:00
|
|
|
@echo "Building alice UI"
|
2017-05-16 13:34:00 +02:00
|
|
|
gulp
|
|
|
|
|
|
|
|
client_prod:
|
2017-05-23 13:58:49 +02:00
|
|
|
@echo "Building alice UI (production)"
|
2017-05-16 13:34:00 +02:00
|
|
|
DISABLE_LOGGING=1 gulp
|
|
|
|
|
|
|
|
watch:
|
|
|
|
while true; do gulp watch; done
|
|
|
|
|
|
|
|
$(DIST_BUILD): deps client_prod
|
2017-05-23 13:58:49 +02:00
|
|
|
@echo "Creating alice ui distribution"
|
2017-05-16 13:34:00 +02:00
|
|
|
tar cvzf $(DIST) build/
|
|
|
|
mv $(DIST) $(DIST_BUILDS)
|
|
|
|
@echo ""
|
|
|
|
@echo "Done. Don't forget to push the dist to github"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dist: $(DIST_BUILD)
|
|
|
|
echo $(DIST_BUILD)
|