个人修改Angluar CLI - 创建一个新应用程序
您好 Stackoverflow 社区,
我有以下问题。
有没有办法创建一个自己的(更独立的)ng新脚本?
标准命令
ng new projectname
只允许我创建或不创建路由、设置 scss 或 css。
创建新应用程序时,我想要一些特殊功能(例如询问或自动安装引导程序)
换句话说,我想制作一个更个性化的 ng new 命令
Hi Stackoverflow Community,
I have the following question / problem.
Is there a way to create an own (more individually) ng new script ?
The standard command
ng new projectname
just allow me to create or not create routing, set scss or css.
When creating a new app, I want some specials (for example ask or automatic install bootstrap)
In other words, I want to make a more individual ng new command
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
手册对您有帮助吗?
请参阅: https://angular.io/cli/new
您有很多选择可以设置。例如 - 收集选项非常强大。
通过 - 收集您可以通过示意图。
一个非常好的示意图示例,您可以在这里找到:
https> https:https:// dravinger。 okta.com/blog/2019/02/13/angular-schematics
Does the manual help you?
See: https://angular.io/cli/new
There you have a lot of options which you can set. For example --collection options which is very powerful.
With --collection you can pass a schematic.
A very good Schematic example you can find here:
https://developer.okta.com/blog/2019/02/13/angular-schematics