Distributing Code
At some point, you may want to share your project with other developers. Whether it’s a library or a full game, you can use Azul to distribute it.
This can be achieved using the azul pack command, which will serialize your project into a sourcemap.
Collaborators can then either use azul push to import the code into their own place, or use azul build to update their local copy of the project.
Best practices
Section titled “Best practices”- Don’t source control your
./sourcemap.jsonfile. Since it’s a living artifact, itsguids will change constantly for every new sync session. - When using
azul pack, do not just override./sourcemap.jsonfile in your repo. Instead, use the-oargument and give it a descriptive name (i.e.my-game.json) - If importing a full game, make sure you use
azul buildwith the--destructiveflag to remove any orphaned Instances that may have been deleted in the source project.