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.
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 oflibs/user/management/domain
.Fixes #79 Fixes #12