Skip to content

Commit

Permalink
ui: Netlify previews (#6419)
Browse files Browse the repository at this point in the history
- Add netlify redirects file
- Add netlify makefile target and commented config settings
  • Loading branch information
johncowen authored and John Cowen committed Aug 29, 2019
1 parent 489cb36 commit 74580ab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ui-v2/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions ui-v2/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/ /ui
/ui/* /ui/index.html 200

0 comments on commit 74580ab

Please sign in to comment.