@botonic/plugin-contentful
Version:
Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet
23 lines (19 loc) • 570 B
text/typescript
import Migration, { MigrationContext } from 'contentful-migration'
import {
createCommonFields,
createFieldButtons,
createFieldFollowUp,
} from '../factories'
function createText(migration: Migration) {
// TODO WIP
const text = migration
.createContentType('text')
.name('Text')
.description('A text optionally with buttons')
createCommonFields(text, { shortText: true, keywords: true })
createFieldButtons(text)
createFieldFollowUp(text)
}
module.exports = function (migration: Migration, _: MigrationContext) {
createText(migration)
}