@contractspec/integration.example-generator
v38.0.0
Published
Example plugin: Markdown documentation generator for ContractSpec specs
Downloads
2,686
Maintainers
Readme
@contractspec/integration.example-generator
Website: https://contractspec.io
Example plugin: Markdown documentation generator for ContractSpec specs.
What It Provides
- Layer: integration.
- Consumers: plugin authors, documentation pipelines.
- Related ContractSpec packages include
@contractspec/lib.contracts-spec,@contractspec/lib.schema,@contractspec/tool.bun,@contractspec/tool.typescript. - Related ContractSpec packages include
@contractspec/lib.contracts-spec,@contractspec/lib.schema,@contractspec/tool.bun,@contractspec/tool.typescript.
Installation
npm install @contractspec/integration.example-generator
or
bun add @contractspec/integration.example-generator
Usage
Import the root entrypoint from @contractspec/integration.example-generator, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/config.tsis part of the package's public or composition surface.src/generator.tsis part of the package's public or composition surface.src/index.tsis the root public barrel and package entrypoint.src/types.tsis shared public type definitions.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./configresolves through./src/config.ts. - Export
./generatorresolves through./src/generator.ts. - Export
./typesresolves through./src/types.ts.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run test— bun test --pass-with-no-testsbun run lint— bun lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run test:watch— bun test --watchbun run test:coverage— bun test --coveragebun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
Notes
- Do not add business logic; this is a reference plugin.
- Keep the export surface minimal -- new exports need a clear use-case.
- Peer-depends on
contracts-specandschema; do not bundle them.
