Re-add demo/example

This commit is contained in:
dannyrb committed 2019-04-17 15:43:04 -04:00
1 parent 891118afa0
commit 0174872427
9 files changed
+458 -12

No files matched your search

+12 -12
View File
@@ -41,18 +41,18 @@ done
cd ..
# Build and copy the StandaloneViewer into the static directory
# echo $DEPLOY_PRIME_URL
# export ROOT_URL=$DEPLOY_PRIME_URL/demo
echo $DEPLOY_PRIME_URL
export ROOT_URL=$DEPLOY_PRIME_URL/demo
# cat package.json
# yarn install
# yarn build
yarn install
yarn build
# cd example
# yarn install
# yarn run prepare
# sed -i "s,http://localhost:5000,${ROOT_URL},g" index.html
# sed -i 's,"routerBasename": "/","routerBasename": "/demo",g' index.html
# rm -rf node_modules
# mkdir docs/latest/_book/demo/
# cp -R * docs/latest/_book/demo/
cd example
yarn install
yarn run prepare
sed -i "s,http://localhost:5000,${ROOT_URL},g" index.html
sed -i 's,"routerBasename": "/","routerBasename": "/demo",g' index.html
rm -rf node_modules
mkdir docs/latest/_book/demo/
cp -R * docs/latest/_book/demo/