UNPKG

igniteui-angular-sovn

Version:

Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps

23 lines (19 loc) 862 B
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; import { RunSchematicTask, NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; const extSchematicModule = '@igniteui/angular-schematics'; const schematicName = 'cli-config'; export const installPackageJsonDependencies = (options: any): Rule => (tree: Tree, context: SchematicContext) => { const installTaskId = context.addTask(new NodePackageInstallTask()); const cliSchematicTask = new RunSchematicTask( extSchematicModule, // Module schematicName, // Schematic Name { collection: extSchematicModule, name: schematicName, options } ); // Add Task for igniteu-cli schematic and wait for install task to finish context.addTask(cliSchematicTask, [installTaskId]); return tree; };