-
Notifications
You must be signed in to change notification settings - Fork 12k
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
feat(generate): create parent directories required for blueprints if they do not exist #3912
feat(generate): create parent directories required for blueprints if they do not exist #3912
Conversation
const testPath = | ||
path.join(root, 'tmp', 'foo', 'src', 'app', 'non-existing-dir', 'my-comp', 'my-comp.component.ts'); | ||
const appModule = path.join(root, 'tmp', 'foo', 'src', 'app', 'app.module.ts'); | ||
return ng(['generate', 'component', `non-existing-dir${path.sep}myComp`]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you test non/existing/dir/myComp
instead? It should be fine to use /
everywhere, and I'd also like to be sure that nested dirs work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Adding @Brocco as a reviewer as well. I added my review but he's the authority on this topic. |
88e9a58
to
c927497
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but please add some e2e test(s) to verify the paths get created.
@Brocco are you happy with the tests provided? |
…they do not exist fixes angular#3307
c927497
to
47b476b
Compare
I just changed my review and marked this as approved. |
…they do not exist Fix angular#3307 Close angular#3912
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
fixes #3307