Skip to content

Instantly share code, notes, and snippets.

@hansl
Last active December 31, 2017 21:43
Show Gist options
  • Save hansl/31fdc96159de97245d8725207f993dbd to your computer and use it in GitHub Desktop.
Save hansl/31fdc96159de97245d8725207f993dbd to your computer and use it in GitHub Desktop.
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 myComponent(options: any): Rule {
return (tree: Tree, _context: SchematicContext) => {
return tree;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment