@booga/bpayload
v0.1.0
Published
Payload v3 plugin embedding the b-suite discipline runtime into the CMS authoring UI.
Readme
bPayload
Payload v3 plugin embedding the b-suite discipline runtime into the CMS authoring UI.
Install
npm install -D @booga/bpayloadUsage
import { buildConfig } from 'payload'
import { bPayload } from '@booga/bpayload'
export default buildConfig({
collections: [
{
slug: 'articles',
fields: [
{ name: 'title', type: 'text' },
{ name: 'body', type: 'textarea' }
]
}
],
plugins: [
bPayload({
collections: ['articles'],
tools: {
bground: true,
banchor: true,
bsmell: true,
bratch: true,
bwatch: true,
bspector: true
},
binary: {
paths: {
bground: 'bground',
banchor: 'banchor',
bsmell: 'bsmell',
bratch: 'bratch',
bwatch: 'bwatch',
bspector: 'bspector'
}
}
})
]
})The plugin runs enabled b-suite command-line tools for marked documents, stores the resulting directive in _bsuiteDirective, and renders the saved directive in the document editor.
Build choice
This package uses tsup to publish ESM, CommonJS, and declaration files from the same TypeScript sources with a small configuration surface.
License
MIT
