Skip to content

Instantly share code, notes, and snippets.

@AvocadoVenom
Last active December 12, 2019 22:00
Show Gist options
  • Select an option

  • Save AvocadoVenom/5fc41fe2159b1378b40b249b5e71b0cf to your computer and use it in GitHub Desktop.

Select an option

Save AvocadoVenom/5fc41fe2159b1378b40b249b5e71b0cf to your computer and use it in GitHub Desktop.
Angular schematic : ADP folders
function createAtomicDesignPatternFolders(options: ModuleOptions): Rule {
return (tree: Tree, _: SchematicContext) => {
tree.create(normalize(`${options.name}/components/atoms/.gitkeep`), '');
tree.create(normalize(`${options.name}/components/molecules/.gitkeep`), '');
tree.create(normalize(`${options.name}/components/organisms/.gitkeep`), '');
tree.create(normalize(`${options.name}/components/pages/.gitkeep`), '');
return tree;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment