Simplify prepare-build script

This commit is contained in:
Pieter Vander Vennet 2025-04-22 03:13:22 +02:00
parent 1a22e12fa3
commit 9242608f05

View file

@ -18,7 +18,10 @@ sed "s/= \"0.0.0\"/= \"$VERSION\"/" -i public/service-worker.js
# This script ends every line with '&&' to chain everything. A failure will thus stop the build
npm run download:editor-layer-index &&
npm run prep:layeroverview &&
npm run generate && # includes a single "refresh:layeroverview". Resetting the files is unnecessary as they are not in there in the first place
# Done by 'deploy_hosted':
# npm run generate:licenses; npm run generate:images; npm run generate:charging-stations; npm run generate:service-worker; npm run download:editor-layer-index
# npm run generate:translations
npm run reset:layeroverview &&
npm run generate:mapcomplete-changes-theme &&
npm run generate:layouts