@o3r/core
Version:
Core of the Otter Framework
10 lines • 632 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAddContextRules = void 0;
const common_1 = require("./common");
const getAddContextRules = (componentPath, options) => (0, common_1.askQuestionsToGetRulesOrThrowIfPackageNotAvailable)(componentPath, 'useContext', options.useContext, 'Generate component with Otter context?', ['@o3r/core:component', '@o3r/core:component-container', '@o3r/core:component-presenter'], '@o3r/core', 'context-to-component', {
...options,
skipLinter: options.skipLinter
});
exports.getAddContextRules = getAddContextRules;
//# sourceMappingURL=context.js.map