This repository is the standard starter layout for Luna-Flow MoonBit packages.
- Rename the module in
moon.mod. - Update
version,repository,keywords, anddescriptioninmoon.mod. - Replace this README with the package-specific overview.
- Replace the placeholder documentation under
doc/. - Replace the placeholder source package under
src/. - Update
NOTICEif the generated repository needs a more specific copyright notice. - Configure the
LUNA_MOONCAKErepository secret before using the publish workflow.
Use just for local workflows:
just fmt
just check
just test
just ready
just update-depsjust ready is the default pre-PR workflow: it formats, checks, refreshes public interface files, and runs coverage-enabled tests.
Documentation lives under doc/ and is organized by locale:
doc/en_USdoc/zh_CNdoc/ja_JP
Each package or subsystem directory should contain:
api.mdtutorial.mddesign.md
Publishing is handled by .github/workflows/publish.yml.
Before dispatching the workflow:
- Set
versioninmoon.modto the exact version to publish. - Run
just ready. - Trigger the
publish-packageworkflow manually. - Enter the exact
moon.modversion asrelease_version.
The workflow validates the input version, checks the package with frozen dependencies, and publishes through moon publish --frozen.