版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1 год назад
1234567891011121314151617181920
  1. # Builder API
  2. This repo exposes everything you'll need to create your own "builder api" for the `vite-plugin-md` plugin.
  3. ## Example
  4. `index.ts`
  5. ```ts
  6. import { createBuilder, PipelineStage } from "@yankeeinlondon/builder-api";
  7. export default createBuilder("my_builder", PipelineStage.parser)
  8. .options<{quantity: number}>()
  9. .initializer()
  10. .handler(
  11. // ok, this plugin doesn't do much :)
  12. async (payload, options) => payload
  13. )
  14. .meta()
  15. ```