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

generate duplicates sub-directories when given an argument with slashes #58

Closed
arlowhite opened this issue Oct 28, 2015 · 2 comments
Closed

Comments

@arlowhite
Copy link

Using Ubuntu Linux. nodejs 4.2.1, angular-cli 0.0.10

I want to nest a component in another directory for organization.
(This issue affects all generate commands)

ng generate component my-category/my-component

version: 1.13.8
installing component
create src/app/components/my-category/my-component/my-category/my-component.css
create src/app/components/my-category/my-component/my-category/my-component.html
create src/app/components/my-category/my-component/my-category/my-component.ts
installing component-test
create src/app/components/my-category/my-component/my-category/my-component.spec.ts

For some reason, this puts an extra my-category directory in the path; this shouldn't happen.

With more subdirectories, it's clear that the argument is doubled when generating the path.

ng generate pipe 1/2/3/4

version: 1.13.8
installing pipe
create src/app/pipes/1/2/3/4/1/2/3/4.spec.ts
create src/app/pipes/1/2/3/4/1/2/3/4.ts

@hansl
Copy link
Contributor

hansl commented Mar 17, 2016

This isn't happening anymore. Closing this as deprecated.

@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 5, 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

No branches or pull requests

2 participants