Capacitor is now forcibly installed on starter projects

未关闭
#4,750 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
angular, typescript
领域
cli

调研方向

首先使用 ionic start 重现该行为,选择 Angular 和一个 starter template,然后跟踪 starter-project generation flow 以及对应的 web wizard path。完成标准是再次提供 Capacitor 选项,并且 web projects 除非选择了该选项,否则不会安装 Capacitor 或其依赖项。

由索引模型根据 Issue 内容生成。

描述

triage

Description:
There used to be a prompt to add capacitor to a new project created using the starter templates, but that option no longer is shown and it's added by default to all projects whether you want it or not. For web based projects, Capacitor isn't needed. Sure, it's easy enough to remove it afterwards, but a bit of a pain and all the dependencies are installed too, so really have to delete node_modules and reinstall from scratch to fully remove it. Same behavior using the new wizard on the web too.

Steps to Reproduce:
Run ionic start, pick Angular, pick and template, and capacitor is added without any prompt

My ionic info:

Ionic:

   Ionic CLI : 6.17.0

Utility:

   cordova-res                          : 0.15.3
   native-run (update available: 1.4.0) : 1.3.0

System:

   NodeJS : v14.17.4
   npm    : 6.14.14
   OS     : macOS Big Sur

主要语言
TypeScript
星标
2k
派生
681
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ionic-team/ionic-cli 的其他 Issue

查看 ionic-team/ionic-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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