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))
|
|
|
|
|
2017-06-19 11:54:13 +02:00
|
|
|
all: client
|
2017-05-16 13:34:00 +02:00
|
|
|
|
|
|
|
deps:
|
|
|
|
@echo "Installing dependencies"
|
2017-06-26 13:24:16 +02:00
|
|
|
yarn install
|
2017-05-16 13:34:00 +02:00
|
|
|
|
2017-06-19 11:54:13 +02:00
|
|
|
client: deps
|
2017-05-23 13:58:49 +02:00
|
|
|
@echo "Building alice UI"
|
2017-05-16 13:34:00 +02:00
|
|
|
gulp
|
|
|
|
|
2017-06-19 11:54:13 +02:00
|
|
|
client_prod: deps
|
2017-05-23 13:58:49 +02:00
|
|
|
@echo "Building alice UI (production)"
|
2018-07-11 18:07:54 +02:00
|
|
|
DISABLE_LOGGING=1 NODE_ENV=production gulp
|
2017-05-16 13:34:00 +02:00
|
|
|
|
|
|
|
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)
|