ionic-team / ionic-team/ionic-cli
scriptable command-line flags for `ionic start --cordova` that skips free account
- 主要語言
- TypeScript
- 星號
- 2k
- 分支
- 682
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Description:**
There is no set of command line flags for a non-interactive start of a new cordova app without the free account prompt.
When setting up a new project with `ionic start --cordova`, the first prompt is
```
[WARN] About to integrate your app with Cordova.
We now recommend ⚡️ Capacitor⚡️ (https://ion.link/capacitor) as the official native runtime for Ionic. To
learn about the differences between Capacitor and Cordova, see these docs[1]. For a getting started guide, see
these docs[2].
[1]: https://ion.link/capacitor-differences-with-cordova-docs
[2]: https://ion.link/capacitor-using-with-ionic-docs
? Are you sure you want to continue? (Y/n)
```
For this prompt, the answer is "Y". Choosing "n" will fall back to Capacitor. `--no-interactive` will select `n` here, so that option is not viable. `--confirm` does not select "Y" so that option is not viable either.
The second prompt is
```
? Create free Ionic account? (y/N)
```
Here the desired choice is "N".
So in summary, the first question needs to be answered with "Y" and the second question has to be answered with "N", and the current set of command line flags do not cover this use case.
貢獻指南
研究方向
Start at the `ionic start --cordova` command and trace how `--no-interactive` and `--confirm` handle the two prompts. Define a non-interactive flag combination that answers the Cordova confirmation with Y and the free-account prompt with N, then verify that a new Cordova app can be created without either prompt.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- typescript
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100