Skip to content

Instantly share code, notes, and snippets.

@ricmello
Created May 21, 2019 01:22
Show Gist options
  • Save ricmello/e3df028acfd34a711afbe92e52aa0ec2 to your computer and use it in GitHub Desktop.
Save ricmello/e3df028acfd34a711afbe92e52aa0ec2 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 mySchematics(_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