c98130cc08
* ui: Add the most basic workspace root in /ui * We already have a LICENSE file in the repository root * Change directory path in build scripts ui-v2 -> ui * Make yarn install flags configurable from elsewhere * Minimal workspace root makefile * Call the new docker specific target * Update yarn in the docker build image * Reconfigure the netlify target and move to the higher makefile * Move ui-v2 -> ui/packages/consul-ui * Change repo root to refleect new folder structure * Temporarily don't hoist consul-api-double * Fixup CI configuration * Fixup lint errors * Fixup Netlify target
30 lines
752 B
Makefile
30 lines
752 B
Makefile
.PHONY: clean dist dist-docker dist-netlify
|
|
# Called from the build ui docker image
|
|
dist-docker: dist
|
|
|
|
clean:
|
|
rm -rf ./dist
|
|
|
|
# Build a distribution of the UI using the minimal amount of dependencies
|
|
dist: clean
|
|
cd packages/consul-ui && \
|
|
CONSUL_UI_INSTALL_FLAGS=--focus \
|
|
$(MAKE)
|
|
|
|
# Build a distribution of the UI for Netlify previews.
|
|
# The distribution must be copied into the ui/ subfolder
|
|
# in order to mirror the go binary
|
|
#
|
|
# Netlify Settings:
|
|
# ---
|
|
# base-directory: ui
|
|
# build command: make dist-netlify
|
|
# publish directory: ui/dist
|
|
dist-netlify: clean
|
|
mkdir -p dist/ui && \
|
|
cd packages/consul-ui && \
|
|
CONSUL_UI_INSTALL_FLAGS=--focus \
|
|
$(MAKE) build-staging && \
|
|
mv dist/* ../../dist/ui && \
|
|
cp _redirects ../../dist/_redirects
|