From d1b7f92e5e266215953e0489d74dbe20ddcda848 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 28 Aug 2019 18:16:43 +0100 Subject: [PATCH] ui: Netlify previews (#6419) - Add netlify redirects file - Add netlify makefile target and commented config settings --- ui-v2/GNUmakefile | 13 +++++++++++++ ui-v2/_redirects | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 ui-v2/_redirects diff --git a/ui-v2/GNUmakefile b/ui-v2/GNUmakefile index 0b000172ca..c8b855c3fe 100644 --- a/ui-v2/GNUmakefile +++ b/ui-v2/GNUmakefile @@ -7,6 +7,19 @@ deps: node_modules clean clean: rm -rf ./tmp +# target for netlify ui previews +# Netlify Settings +# base-directory: ui-v2 +# build command: make netlify +# publish directory: ui-v2/ui-dist +netlify: build-staging + mkdir -p ui-dist/ui \ + && mv dist/* ui-dist/ui/ \ + && cp _redirects ui-dist/_redirects + +build-staging: deps + yarn run build:staging + build-ci: deps yarn run build-ci --output-path=dist diff --git a/ui-v2/_redirects b/ui-v2/_redirects new file mode 100644 index 0000000000..3f6c546aab --- /dev/null +++ b/ui-v2/_redirects @@ -0,0 +1,2 @@ +/ /ui +/ui/* /ui/index.html 200