Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): build bb.js in docs build script #3306

Closed
wants to merge 7 commits into from
8 changes: 8 additions & 0 deletions docs/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ build_package() {
(cd "yarn-project/$package_name" && $build_command)
}

bootstrap_barretenberg() {
echo "Bootstrapping barretenberg and building bb.js..."
(cd barretenberg && ./bootstrap.sh)
}

# Build script. If run on Netlify, first it needs to compile all yarn-projects
# that are involved in typedoc in order to generate their type information.
if [ -n "$NETLIFY" ]; then
# Move to project root
cd ..
echo Working dir $(pwd)

# Build bb.js
bootstrap_barretenberg

# Make sure the latest tag is available for loading code snippets from it
LAST_TAG="aztec-packages-v$(jq -r '.["."]' .release-please-manifest.json)"
echo Fetching latest released tag $LAST_TAG...
Expand Down