Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Init/Domain/Feature/Api/Ui/Util layer generators #129

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

itsboogie
Copy link

exported generators to allow for better generator composition

@itsboogie
Copy link
Author

itsboogie commented Jun 9, 2023

This PR allows one to extend the @angular-architects/ddd generators with extra features in custom generators:

import { angularArchitectsDddApiGenerator } from '@angular-architects/ddd';
import { formatFiles, Tree } from '@nx/devkit';

const myCustomFeatureGenerator= async (
  tree: Tree,
  options: { myOption: string }
): Promise<void> => {
  const { myOption } = options;

  await angularArchitectsDddApiGenerator(tree, {
   // default generator can be customized here
  });

  // do extra stuff like adding linting rules, setting up libraries, etc here :)

  return await formatFiles(tree);
};

export default myCustomFeatureGenerator;

@wolfmanfx
Copy link

@itsboogie Can you revert the package-lock json changes>

@itsboogie itsboogie changed the title Export Domain/Feature/Api/Ui/Util layer generators Export -Init/Domain/Feature/Api/Ui/Util layer generators Jun 12, 2023
@itsboogie itsboogie changed the title Export -Init/Domain/Feature/Api/Ui/Util layer generators Export Init/Domain/Feature/Api/Ui/Util layer generators Jun 12, 2023
@L-X-T L-X-T force-pushed the main branch 5 times, most recently from 81a45f5 to 2ac6004 Compare November 3, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants