Files
esengine/thirdparty/rapier.js/builds/prepare_builds/build_all_projects.sh
2025-12-03 16:24:08 +08:00

20 lines
600 B
Bash

#!/bin/bash
for entry in builds/*
do
if [[ "$(basename "$entry")" == $(basename $(dirname "${BASH_SOURCE[0]}")) ]]; then
echo "skipping directory: $entry"
continue;
fi
(
cd $entry
echo "building $entry"
# FIXME: ideally we'd use `npm ci`
# but we'd need to have generated the `package-lock` beforehand and committed them in the repository.
# I'm not sure yet how to store those `package-lock`s yet though.
# They should proably be similar to all packages, but I'm not sure.
npm i;
npm run build;
)
done