@kubb/core
The core module provides the building blocks for all plugins.
Installation
shell
bun add -d @kubb/coreshell
pnpm add -D @kubb/coreshell
npm install --save-dev @kubb/coreshell
yarn add -D @kubb/coreUsage
typescript
import { build } from '@kubb/core'
const { error, files, pluginManager } = await build({
config: {
root: '.',
input: {
data: '',
},
output: {
path: './gen',
},
},
})
console.log(files)Start the build process using a defined config (see UserConfig type). This triggers the plugins and their lifecycle methods.
