UNPKG

@ng-zen/cli

Version:

Angular UI components generator – Zen UI Kit CLI for schematics-based creation of customizable components like avatar, button, checkbox, divider, form-control, icon, input, skeleton, switch, textarea with Storybook demos.

26 lines 948 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDependencies = getDependencies; const dependencies_1 = require("@schematics/angular/utility/dependencies"); function getDependencies(selectedElements, dependenciesConfig) { const dependencies = []; for (const component of selectedElements) { if (!dependenciesConfig[component]) continue; for (const type of Object.values(dependencies_1.NodeDependencyType)) { const typeDeps = dependenciesConfig[component][type]; if (!typeDeps) continue; for (const [name, version] of Object.entries(typeDeps)) { dependencies.push({ type, name, version, overwrite: false, }); } } } return dependencies; } //# sourceMappingURL=get-dependencies.js.map