This project is configured for Windows 10/11 machines. If you're using another OS, it may not work properly.
Ensure you have the following programs installed and up to date:
- Run
npm i
- Run
npm i
again in thescripts
directory
Documentation is generated for the public API (public_api
directory) using TypeDoc based on source code.
Markdown guides are also included. These guides can be found in public_api/guides
.
To add a new guide, add it to the children
frontmatter property in public_api/guides/index.md
.
Before pushing your changes, run npm run gen-docs
to generate the documentation.
To check your code before commiting, run npm run check
.
To format your code before commiting, run npm run fmt
.
You can also run npm run fmt-check
to format and check.
If your code is not properly formatted or npm run check
fails, it will not be accepted.
Ensure that you test your new code in Minecraft before pushing changes.
To build your code, simply run regolith run
.
Before pushing new changes, follow this checklist:
- Your code is formatted and checked.
- You have tested your changes in Minecraft.
- You have generated the new documentation if you changed the public API.