-
Notifications
You must be signed in to change notification settings - Fork 12k
Add command to create empty file #3373
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
Comments
I feel the CLI should work the same (as close as we can) on either OSX or Windows. This way we can create scripts that work in either environment and generate projects. This feature would help that parity. |
I've deleted comments on this issue that were in violation of Angular's Code of Conduct and banned the user in question. |
I see how it can be useful as a simple command for scripts, and as something of a conceptual proto generator. In the future it would be nice to extend the AST codegen to create all generators from a base one and this could be it. What do you think @Brocco? |
@naomiblack thank you :) |
I struggle to see the usefulness of this feature. The power of blueprints IMO are to create boilerplate code to get you coding faster. All IDEs/editors provide this functionality, so I struggle to see the added benefit of adding it into the CLI. I'm not against it, just not convinced based upon the script example from @johnpapa above. Using a script to create an application is something that very few people will actually use, especially when that script could do the same thing via |
@johnpapa -- could you use |
The only use case I have for this is scripting for file creation. If that is not something in scope, I agree that this can be closed @Brocco . I'm fine using OS commands to do it, if there are no other requests for it. Feel free to close if you wish |
Closing for now, but if there's more feedback about adding this feature we can re-evaluate. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Mac OSX Sierra
Versions.
angular-cli: 1.0.0-beta.21
node: 6.9.1
os: darwin x64
Suggestion
Add "ng g e bar" command that creates an empty file with .ts as default extension
Useful for creating files that there are no templates for.
e.g.
typings.d.ts
rxjs-extensions.ts
This might useful for creating scripts that generate projects, like this
The text was updated successfully, but these errors were encountered: