Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
export function simpleSchematic(options: any): Rule {
return (tree: Tree, _context: SchematicContext) => {
setupOptions(tree, options);
const movePath = (options.flat) ?
normalize(options.path) :
normalize(options.path + '/' + strings.dasherize(;
const templateSource = apply(url('./files'), [
options.spec ? noop() : filter(path => !path.endsWith('.spec.ts')),
const rule = mergeWith(templateSource, MergeStrategy.Default);
return rule(tree, _context);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.