Skip to content

@kubb/core

The core module provides the building blocks for all plugins.

Installation

shell
bun add -d @kubb/core
shell
pnpm add -D @kubb/core
shell
npm install --save-dev @kubb/core
shell
yarn add -D @kubb/core

Usage

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.

Released under the MIT License.