angular-architects / nx-ddd-plugin

Nx plugin for structuring a monorepo with domains and layers
313 stars 56 forks source link

fix: use expected path when generating a domain or feature #80

Closed sg-gdarnell closed 3 years ago

sg-gdarnell commented 3 years ago

The --directory parameter introduced in #35 is used to determine the path when generating a domain library. Similarly, the --domainDirectory flag is used when generating a feature library. This PR corrects the usage of these flags so that the given --directory or --domainDirectory appears before the domain's name in the path instead of appearing after.

For example, this command:

ng g @angular-architects/ddd:domain user --directory=management

Will now generate the path libs/management/user/domain instead of libs/user/management/domain.

Fixes #79 Fixes #12

manfredsteyer commented 3 years ago

Thanks a lot!