Morio | Morio
Morio is not ready for production|Learn more

Morio

The reconfigure run script will run a variety of housekeeping task to ensure the monorepo is correctly set up.

Run npm run reconfigure in the monorepo root to trigger this script.

Under the hood, this will run:

Terminal
node scripts/reconfigure.mjs

The main task of this script to to create the scripts to launch the core service container for local development. For that to work, we map the local git repository into the container. Since the path to the local git repository can be different on every contributor’s machine, we need to generate this script dynamically.

This run script is idempotent

It is safe to run this script more than once without compounding effects.

NOTE

The reason there is both a preconfigure and a reconfigure run script is because some things — like creating folders and managing permissions — are easier to do in a shell script than in Javascript.

As such, the preconfigure script runs shell commands, whereas the reconfigure run script runs javascript code. Together, the get the job done.

<!-- Morio wordmark font is phosphate (with some tweaks -->by CERT-EU