Browse Source

ui: Netlify previews (#6419)

- Add netlify redirects file
- Add netlify makefile target and commented config settings
pull/6436/head
John Cowen 5 years ago committed by John Cowen
parent
commit
d1b7f92e5e
  1. 13
      ui-v2/GNUmakefile
  2. 2
      ui-v2/_redirects

13
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

2
ui-v2/_redirects

@ -0,0 +1,2 @@
/ /ui
/ui/* /ui/index.html 200
Loading…
Cancel
Save