@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
29 lines • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCmsInfo = exports.createManageCms = exports.createCms = void 0;
const cms_1 = require("../cms");
const manage_cms_error_1 = require("../manage-cms/manage-cms-error");
const cms_contentful_1 = require("./cms-contentful");
const info_contentful_1 = require("./info-contentful");
const manage_1 = require("./manage");
function createCms(options, errorReporting = true) {
const contentful = new cms_contentful_1.Contentful(options);
if (!errorReporting) {
return contentful;
}
return new cms_1.ErrorReportingCMS(contentful);
}
exports.createCms = createCms;
function createManageCms(options, errorReporting = true) {
const contentful = new manage_1.ManageContentful(options);
if (!errorReporting) {
return contentful;
}
return new manage_cms_error_1.ErrorReportingManageCms(contentful);
}
exports.createManageCms = createManageCms;
function createCmsInfo(options) {
return new info_contentful_1.ContentfulInfo(options);
}
exports.createCmsInfo = createCmsInfo;
//# sourceMappingURL=factories.js.map