Slide 65
Slide 65 text
z
import { Rule, SchematicContext, Tree, chain,
externalSchematic } from '@angular-devkit/schematics';
export function myComponent(options: any): Rule {
return (tree: Tree, _context: SchematicContext) => {
tree.create(options.name || 'hello', 'world');
return chain(tree, externalSchematic(...));
};
}
Chain external schematics