UNPKG

ng-zorro-antd-yj

Version:

An enterprise-class UI components based on Ant Design and Angular

22 lines 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tasks_1 = require("@angular-devkit/schematics/tasks"); const package_config_1 = require("../utils/package-config"); const version_names_1 = require("../utils/version-names"); function default_1(options) { return (host, context) => { if (!options.skipPackageJson) { package_config_1.addPackageToPackageJson(host, 'ng-zorro-antd', version_names_1.zorroVersion); if (options.gestures) { package_config_1.addPackageToPackageJson(host, 'hammerjs', version_names_1.hammerjsVersion); } } const installTaskId = context.addTask(new tasks_1.NodePackageInstallTask()); context.addTask(new tasks_1.RunSchematicTask('ng-add-setup-project', options), [installTaskId]); if (options.bootPage) { context.addTask(new tasks_1.RunSchematicTask('boot-page', options)); } }; } exports.default = default_1; //# sourceMappingURL=index.js.map