UNPKG

@o3r/core

Version:
29 lines 954 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cmsPreset = cmsPreset; const schematics_1 = require("@angular-devkit/schematics"); const schematics_2 = require("@o3r/schematics"); const helpers_1 = require("./helpers"); /** * Preset Installing the minimum modules to fully administrated the application via CMS * @param options */ function cmsPreset(options) { const modules = [ '@o3r/localization', '@o3r/styling', '@o3r/components', '@o3r/configuration', '@o3r/dynamic-content', '@o3r/rules-engine' ]; const rule = (0, helpers_1.defaultPresetRuleFactory)(modules, options); return { modules, rule: (0, schematics_1.chain)([ (0, schematics_2.setupSchematicsParamsForProject)({ '*:ng-add': { enableMetadataExtract: true } }, options.projectName), rule ]) }; } //# sourceMappingURL=cms.preset.js.map