Skip to content

Feature Request: Support Renaming App Folder and Main Entrypoint #1145

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

Closed
sqwk opened this issue Jun 20, 2016 · 8 comments · Fixed by #1633
Closed

Feature Request: Support Renaming App Folder and Main Entrypoint #1145

sqwk opened this issue Jun 20, 2016 · 8 comments · Fixed by #1633
Labels
feature Issue that requests a new feature P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@sqwk
Copy link

sqwk commented Jun 20, 2016

At the moment the cli expects the main entrypoint to be at src/main.ts and the AppComponent at src/app/index.ts If one renames/moves them to src/js/bootstrap.ts and src/js/app.ts respectively, production compilation will fail. Normal compilation works fine. It seems that main.ts is hardcoded into the production build somewhere.

@filipesilva filipesilva added type: enhancement feature Issue that requests a new feature P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent labels Jun 20, 2016
@Lightw3ight
Copy link

I would really like this feature too
I am using a-cli to make a component library and so having a folder named "app" doesn't make much sense, I have managed to rename my app folder changed my config files and seem to have compilation working but I cannot use the generator as it seems to only want to generate files in the app folder (which doesn't exist)

@platosha
Copy link

Is it coming in #1633?

@intellix
Copy link
Contributor

I think it'd be cool to rename/move anything actually, with references updated.
I have a component called meh and I want to rename it to meh-lol and I have to update quite a few file names, and references

@yogeshgadge
Copy link

yogeshgadge commented Aug 3, 2017

As of 1.2.6 I don't believe this is fixed. ng g m my-component still generates it here src/app/my-component/my-component.module.ts

@ghaschel
Copy link

Same result as @yogeshgadge here

@yogeshgadge
Copy link

@ghaschel try CLI 6.x you will have control over folder structure.

@d0vi
Copy link

d0vi commented Sep 26, 2018

@yogeshgadge I don't see anything in the wiki related to what you are saying here 😢

@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 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Issue that requests a new feature P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants