Core engine for Kubb. Provides the plugin driver, file manager and build orchestration used by every Kubb plugin.
- Types
- ESM
- CJS
- License
- MIT
- Install Size
- 1.5 MB
- Vulns
- Published
Get started
npm install @kubb/corepnpm add @kubb/coreyarn add @kubb/corebun add @kubb/coredeno add npm:@kubb/corevlt install @kubb/corevp add @kubb/corenub add @kubb/coreni @kubb/coreupm add @kubb/core@kubb/core
Core engine for Kubb
Core engine for Kubb's plugin-based code generation system. Provides the plugin driver, file manager, defineConfig, defineExtension, defineMiddleware, and the build orchestration layer used by every Kubb plugin.
Note:
@kubb/coreis an internal library. Install thekubbmeta-package instead and author plugins, generators, resolvers, parsers, and adapters through itskubb/kitsubpath, which re-exports the authoring surface of this package.
Installation
bun add @kubb/core
# or
pnpm add @kubb/core
# or
npm install @kubb/core
Cancellation
createKubb accepts an AbortSignal. The engine checks it before setup, while it parses input and
normalizes plugins, and before each generated-file write. Plugin authors receive the same signal in
their generator context when they need to stop their own asynchronous work.
Supporting Kubb
Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider: