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

feat(generate): create parent directories required for blueprints if they do not exist #3912

Closed

Conversation

Meligy
Copy link
Contributor

@Meligy Meligy commented Jan 9, 2017

fixes #3307

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`])
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@filipesilva filipesilva requested a review from Brocco January 9, 2017 15:24
@filipesilva
Copy link
Contributor

Adding @Brocco as a reviewer as well. I added my review but he's the authority on this topic.

@Meligy Meligy force-pushed the feat/generate-creates-non-existing-dir branch from 88e9a58 to c927497 Compare January 9, 2017 16:08
Copy link
Contributor

@Brocco Brocco left a 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.

@filipesilva
Copy link
Contributor

@Brocco are you happy with the tests provided?

@Meligy Meligy force-pushed the feat/generate-creates-non-existing-dir branch from c927497 to 47b476b Compare January 14, 2017 23:22
@Brocco
Copy link
Contributor

Brocco commented Jan 15, 2017

I just changed my review and marked this as approved.

MRHarrison pushed a commit to MRHarrison/angular-cli that referenced this pull request Feb 9, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read property 'kind' of undefined
4 participants