Skip to content

chant dev onboard

chant dev onboard <name> [--verbose]

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:

FileChange
package.json (root)Adds @intentius/chant-lexicon-<name>: "workspace:*" to dependencies
.github/workflows/chant.ymlAdds prepack lines to check/test jobs + a validate step
.github/workflows/publish.ymlAdds prepack line to test job + a publish step
test/Dockerfile.smokeAdds RUN bun run --cwd lexicons/<name> prepack
test/Dockerfile.smoke-nodeSame prepack line for Node.js smoke test

The command is idempotent — running it again on an already-onboarded lexicon skips all changes.

FlagDescription
--verboseShow detailed output
Terminal window
# Scaffold the lexicon
chant init lexicon terraform
# ... implement generate, serializer, rules, etc. ...
# Wire into CI
chant dev onboard terraform

After running dev onboard, you still need to:

  1. Create an example workspace under lexicons/<name>/examples/
  2. Add smoke tests to test/integration.sh
  3. Run bun install to update workspace links
  4. Tag and push for the first npm publish

See CI & Distribution for details.