个人修改Angluar CLI - 创建一个新应用程序

发布于 01-18 09:14 字数 240 浏览 3 评论 0原文

您好 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

似狗非友 2025-01-25 09:14:36

手册对您有帮助吗?

请参阅: 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文