ui: Netlify previews (#6419)

- Add netlify redirects file
- Add netlify makefile target and commented config settings
This commit is contained in:
John Cowen 2019-08-28 18:16:43 +01:00 committed by John Cowen
parent 2369c47033
commit d1b7f92e5e
2 changed files with 15 additions and 0 deletions

View File

@ -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 Normal file
View File

@ -0,0 +1,2 @@
/ /ui
/ui/* /ui/index.html 200