ionic-team / ionic-team/ionic-cli

Ionic should not install all dependencies unless instructed to

未关闭
#5,032 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
TypeScript
星标
2k
派生
682
PR 合并指标
30 天内没有已合并 PR

描述

I would like to point out that it is unfortunate that the ionic start command automatically executes the npm install command to install all npm dependencies. Given also that the options for skipping dependencies does not work

In my opinion, the command's main purpose should be to generate code, not handle dependency installation. It would be more in line with the single responsibility principle if the command focused solely on code generation.

Running npm install is a simple command that we can manually execute after generating the project. I mention this because the automatic execution of npm install during ionic start can significantly increase the execution time, especially on slow networks. This can be frustrating, especially when we need to run the command multiple times to explore different templates or options.

It's important to note that generating code does not necessarily mean that we will immediately execute it. Separating the dependency installation step from the code generation step would provide more flexibility and control over the development process

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。