@lunchbox-tools/commit
v1.2.0
Published
commit message generator
Readme
@lunchbox-tools/commit
Interactive CLI for generating Conventional Commits messages.
For usage docs and configuration reference, see the documentation site.
Usage
npx @lunchbox-tools/commit # run without installing
npm install -g @lunchbox-tools/commit # or install the `lunchbox-commit` commandOptions are read from the "commit" section of lunchbox.config.json, at the root of the git repository.
Package structure
src/
cli.ts ← `lunchbox-commit` executable
config.ts ← config file validators
constants.ts ← default commit types, scopes, and limits
format.ts ← Conventional Commit message assembly
prompt.ts ← @clack prompt sequence
type.ts ← TypeScript interfaces
utils.ts ← internal helpers
index.ts ← public API (setupCommitPrompt)
tests/
format.test.ts
prompt.test.tsLocal development
# from the repo root
pnpm --filter @lunchbox-tools/commit run build
pnpm --filter @lunchbox-tools/commit run test
pnpm --filter @lunchbox-tools/commit run lintPublic API
setupCommitPrompt(config?: Partial<CommitConfig>): { run(): Promise<void> }