Skip to content

Commit

Permalink
ci(docs): generate report for example aepps
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jun 2, 2023
1 parent 0dcb239 commit 5e4440a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions docs/build-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,21 @@ mkdir -p docs/examples/browser
echo Build example aepp
cd ./examples/browser/aepp
npm i
VUE_APP_WALLET_URL=../wallet-iframe/ PUBLIC_PATH=./ npm run build
VUE_APP_WALLET_URL=../wallet-iframe/ PUBLIC_PATH=./ npm run build -- --report
mv -f dist/ ../../../docs/examples/browser/aepp

echo Build example wallet-iframe
cd ../wallet-iframe
npm i
VUE_APP_AEPP_URL=../aepp/ PUBLIC_PATH=./ npm run build
VUE_APP_AEPP_URL=../aepp/ PUBLIC_PATH=./ npm run build -- --report
mv -f dist/ ../../../docs/examples/browser/wallet-iframe

echo Build example wallet-web-extension
cd ../wallet-web-extension
npm i
NODE_OPTIONS=--openssl-legacy-provider npm run build
mv artifacts/wallet-web-extension-v0.1.0-production.zip ../../../docs/examples/browser/wallet-web-extension.zip
NODE_OPTIONS=--openssl-legacy-provider npm run build -- --report
mv artifacts/wallet-web-extension-v0.1.0-production.zip ../../../docs/examples/browser/wallet-web-extension/packed.zip
mv dist/report.html ../../../docs/examples/browser/wallet-web-extension/report.html

cd ../../..
perl -i -pe 's/"rem-prepare"/"prepare"/g' package.json
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ nav:
- Browser:
- 'Aepp example': examples/browser/aepp/index.html
- 'Iframe wallet example': examples/browser/wallet-iframe/index.html
- 'Webextension wallet example': examples/browser/wallet-web-extension.zip
- 'Webextension wallet example': examples/browser/wallet-web-extension/packed.zip
- tutorials/vuejs/helloworld-blockheight.md
- 'API Reference': api/index.html
- compatibility.md
Expand Down

0 comments on commit 5e4440a

Please sign in to comment.