Skip to content

Commit

Permalink
build: ignore post-install scripts
Browse files Browse the repository at this point in the history
The GitHub CI workflows and Docker builds already run `yarn install` with the `--ignore-scripts` flag. This PR makes the same change to the bootstrap scripts for local development.

I've also tidied up `bin/bootstrap.sh` so that it only runs the install once, then builds the various packages in order.
  • Loading branch information
eatyourgreens committed Oct 17, 2024
1 parent 9022a32 commit bad4a4e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions bin/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,28 @@ set -ev
ROOT_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && cd .. && pwd)"
cd $ROOT_DIR

printf 'Installing dependencies...\n'
yarn install --frozen-lockfile --ignore-scripts
printf '\n'

printf 'Building `lib-react-components`...\n'
yarn workspace @zooniverse/react-components install --frozen-lockfile
yarn workspace @zooniverse/react-components build
printf '\n'

printf 'Building `lib-content`...\n'
yarn workspace @zooniverse/content install --frozen-lockfile
yarn workspace @zooniverse/content build
printf '\n'

printf 'Building `lib-user`...\n'
yarn workspace @zooniverse/user install --frozen-lockfile
yarn workspace @zooniverse/user build
printf '\n'

printf 'Building `lib-subject-viewers`...\n'
yarn workspace @zooniverse/subject-viewers install --frozen-lockfile
yarn workspace @zooniverse/subject-viewers build
printf '\n'

printf 'Building `lib-classifier`...\n'
yarn workspace @zooniverse/classifier install --frozen-lockfile
yarn workspace @zooniverse/classifier build
printf '\n'

printf 'Building `fe-project`...\n'
Expand Down
2 changes: 1 addition & 1 deletion bin/bootstrap:es6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ROOT_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && cd .. && pwd)"
cd $ROOT_DIR

printf 'Installing dependencies...\n'
yarn install --frozen-lockfile
yarn install --frozen-lockfile --ignore-scripts
printf '\n'

printf 'Building `lib-react-components`...\n'
Expand Down
2 changes: 1 addition & 1 deletion bin/clean-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ for DIR in $(find $ROOT_DIR/packages -mindepth 1 -maxdepth 1 -type d) ; do
printf " done!\n"
done

yarn install --frozen-lockfile
yarn install --frozen-lockfile --ignore-scripts
echo "Finished!"

0 comments on commit bad4a4e

Please sign in to comment.