Created
May 21, 2019 01:42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; | |
// You don't have to export the function as default. You can also have more than one rule factory | |
// per file. | |
export function mySchematics(_options: any): Rule { | |
return (tree: Tree, _context: SchematicContext) => { | |
tree.create(_options.name || 'hello', 'world'); | |
return tree; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment