UNPKG

@ng-zen/cli

Version:

Angular UI components generator – Zen UI Kit CLI for schematics-based creation of customizable components like alert, avatar, button, card, checkbox, dialog, divider, form-control, icon, input, popover, radio, skeleton, switch, textarea with Storybook dem

25 lines 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.installIconLibrary = installIconLibrary; exports.logIconLibraryManualInstructions = logIconLibraryManualInstructions; const tasks_1 = require("@angular-devkit/schematics/tasks"); const dependencies_1 = require("@schematics/angular/utility/dependencies"); const icon_libraries_1 = require("./icon-libraries"); function installIconLibrary() { return (tree, context) => { context.logger.info('📦 Installing @hugeicons/core-free-icons...'); (0, dependencies_1.addPackageJsonDependency)(tree, icon_libraries_1.HugeiconsCoreFree); context.addTask(new tasks_1.NodePackageInstallTask()); context.logger.info('✅ @hugeicons/core-free-icons has been added to your project.'); return tree; }; } function logIconLibraryManualInstructions() { return (tree, context) => { context.logger.info('To use <zen-icon>, install an SVG icon library (one-time setup):'); context.logger.info(' - Recommended: @hugeicons/core-free-icons'); context.logger.info(' - Or use any other SVG icon library and pass icons via the [icon] input.'); return tree; }; } //# sourceMappingURL=icon-library.js.map