Skip to content

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

Closed
Meligy wants to merge 1 commit into
angular:masterfrom
Meligy:feat/generate-creates-non-existing-dir
Closed

Meligy wants to merge 1 commit into
angular:masterfrom
Meligy:feat/generate-creates-non-existing-dir

Conversation

@Meligy

@Meligy Meligy commented Jan 9, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@Brocco Brocco left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

Brocco commented Jan 15, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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
mostafaibr pushed a commit to mostafaibr/angular-cli that referenced this pull request May 29, 2026
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