Skip to content

Commit 7c46ed7

Browse files
committed
ci(docs): generate report for example aepps
1 parent 0dcb239 commit 7c46ed7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Diff for: docs/build-assets.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,22 @@ mkdir -p docs/examples/browser
1212
echo Build example aepp
1313
cd ./examples/browser/aepp
1414
npm i
15-
VUE_APP_WALLET_URL=../wallet-iframe/ PUBLIC_PATH=./ npm run build
15+
VUE_APP_WALLET_URL=../wallet-iframe/ PUBLIC_PATH=./ npm run build -- --report
1616
mv -f dist/ ../../../docs/examples/browser/aepp
1717

1818
echo Build example wallet-iframe
1919
cd ../wallet-iframe
2020
npm i
21-
VUE_APP_AEPP_URL=../aepp/ PUBLIC_PATH=./ npm run build
21+
VUE_APP_AEPP_URL=../aepp/ PUBLIC_PATH=./ npm run build -- --report
2222
mv -f dist/ ../../../docs/examples/browser/wallet-iframe
2323

2424
echo Build example wallet-web-extension
2525
cd ../wallet-web-extension
2626
npm i
27-
NODE_OPTIONS=--openssl-legacy-provider npm run build
28-
mv artifacts/wallet-web-extension-v0.1.0-production.zip ../../../docs/examples/browser/wallet-web-extension.zip
27+
NODE_OPTIONS=--openssl-legacy-provider npm run build -- --report
28+
mkdir ../../../docs/examples/browser/wallet-web-extension/
29+
mv artifacts/wallet-web-extension-v0.1.0-production.zip ../../../docs/examples/browser/wallet-web-extension/packed.zip
30+
mv dist/report.html ../../../docs/examples/browser/wallet-web-extension/report.html
2931

3032
cd ../../..
3133
perl -i -pe 's/"rem-prepare"/"prepare"/g' package.json

Diff for: mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ nav:
7474
- Browser:
7575
- 'Aepp example': examples/browser/aepp/index.html
7676
- 'Iframe wallet example': examples/browser/wallet-iframe/index.html
77-
- 'Webextension wallet example': examples/browser/wallet-web-extension.zip
77+
- 'Webextension wallet example': examples/browser/wallet-web-extension/packed.zip
7878
- tutorials/vuejs/helloworld-blockheight.md
7979
- 'API Reference': api/index.html
8080
- compatibility.md

0 commit comments

Comments
 (0)