Skip to content

Commit

Permalink
added installation checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kyzooghost committed Dec 20, 2024
1 parent f8be9e1 commit d83da4a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions contracts/docs/scripts/create-docs-website-pr-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### ASSUMPTIONS
# - Requires permissions to create a branch on docs.linea.build repo
# - Must execute this script from within linea-monorepo (can be anywhere)
# - Hardhat must be installed in the local project, forge must be installed globally

### CONSTANTS
DOCS_WEBSITE_REPO_NAME=doc.linea
Expand All @@ -30,6 +31,22 @@ MONOREPO_ROOT_PATH=$(git rev-parse --show-toplevel)
cd $MONOREPO_ROOT_PATH
cd contracts

# Check required installations
if ! command -v forge &> /dev/null; then
echo "Please install Foundry - https://book.getfoundry.sh/getting-started/installation"
exit 1
fi

if ! command -v pnpm &> /dev/null; then
echo "Please install pnpm - https://pnpm.io/installation"
exit 1
fi

if [ -z "$(pnpm -F contracts list hardhat)" ]; then
echo "Please install Hardhat - \`pnpm i\`"
exit 1
fi

# Docgen
npx hardhat docgen

Expand Down

0 comments on commit d83da4a

Please sign in to comment.