chant dev onboard
Synopsis
Section titled “Synopsis”chant dev onboard <name> [--verbose]Description
Section titled “Description”chant dev onboard patches the monorepo infrastructure to include a new lexicon in CI, Docker smoke tests, and the npm publish workflow. Run this after scaffolding a lexicon with chant init lexicon <name> and building out its implementation.
The command modifies 5 files:
| File | Change |
|---|---|
package.json (root) | Adds @intentius/chant-lexicon-<name>: "workspace:*" to dependencies |
.github/workflows/chant.yml | Adds prepack lines to check/test jobs + a validate step |
.github/workflows/publish.yml | Adds prepack line to test job + a publish step |
test/Dockerfile.smoke | Adds RUN bun run --cwd lexicons/<name> prepack |
test/Dockerfile.smoke-node | Same prepack line for Node.js smoke test |
The command is idempotent — running it again on an already-onboarded lexicon skips all changes.
Options
Section titled “Options”| Flag | Description |
|---|---|
--verbose | Show detailed output |
Example
Section titled “Example”# Scaffold the lexiconchant init lexicon terraform
# ... implement generate, serializer, rules, etc. ...
# Wire into CIchant dev onboard terraformRemaining manual steps
Section titled “Remaining manual steps”After running dev onboard, you still need to:
- Create an example workspace under
lexicons/<name>/examples/ - Add smoke tests to
test/integration.sh - Run
bun installto update workspace links - Tag and push for the first npm publish
See CI & Distribution for details.
See also
Section titled “See also”chant init lexicon— scaffold a new lexiconchant dev generate— run the generation pipelinechant dev publish— build the distributable bundle- CI & Distribution guide