Skip to content

generate - customize location #222

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
NathanWalker opened this issue Feb 19, 2016 · 4 comments
Closed

generate - customize location #222

NathanWalker opened this issue Feb 19, 2016 · 4 comments

Comments

@NathanWalker
Copy link
Contributor

Right now, it appears to be hard-coded to an app directory to contain all src. I would like to use angular-cli's generate ability but not necessarily use the build. For this to be useful, it would be beneficial to be able to specify the root src directory or even a path to a location to generate the file, etc.

If this sounds reasonable, I can look into a PR.

@NathanWalker
Copy link
Contributor Author

For instance app here does not need to be hard-coded and could become a cli argument:
https://github.com/angular/angular-cli/blob/master/addon/ng2/blueprints/component/files/src/app/components/__name__/__name__.ts#L6

@hansl
Copy link
Contributor

hansl commented Feb 19, 2016

Due to the complexity of the problem, we will not allow you to specify a structure. At least in the foreseeable future. We want the tool to generate an app with a structure that is considered the best practice by angular. And having a stable structure will make it easy for tools to parse as well.

Note that the app structure generated by the tool right now is likely to change before the beta milestone. I would not use this for serious production websites, or be ready for some refactoring.

@hansl hansl closed this as completed Feb 19, 2016
@NathanWalker
Copy link
Contributor Author

Thanks @hansl understandable.

@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