Skip to content

Commit

Permalink
Merge pull request #752 from WildMeOrg/add-npm-ci-for-build
Browse files Browse the repository at this point in the history
install frontend dependencies before building
  • Loading branch information
TanyaStere42 authored Sep 23, 2024
2 parents 2a2ad8e + 4918cd6 commit e066923
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/maven-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export SITE_NAME="Test Site Name"
npm install react-app-rewired

cd frontend

# Use `npm ci` for consistent and faster installs in production, as it installs exact versions
# from `package-lock.json` without modifying it, ensuring stability across environments.
npm ci

npm run build

rsync -a build/ ../src/main/webapp/react
Expand Down

0 comments on commit e066923

Please sign in to comment.