We need to build the frontend via NPM and the backend via Gradle. Ideally the build would be all orchestrated by Gradle, but currently the two parts are separate and the way to do it is not documented, so that at least should be fixed in the short term.
The build is roughly the equivalent of doing the following after a clean checkout:
cd frontend
npm install
set CI=true && npm test
npm run build
cd ..
cp -R frontend/build/* server/src/main/resources/buildServerResources
gradle serverPlugin
mv server/build/distributions/server.zip ./deployment-dashboard.zip
We need to build the frontend via NPM and the backend via Gradle. Ideally the build would be all orchestrated by Gradle, but currently the two parts are separate and the way to do it is not documented, so that at least should be fixed in the short term.
The build is roughly the equivalent of doing the following after a clean checkout: