ionic-team / ionic-team/ionic-cli

ionic multi-app project using ionic cli 7.1.1 not work

未關閉
#5,017 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
triage
主要語言
TypeScript
星號
2k
分支
682
PR 合併指標
30 天內沒有已合併 PR

描述

**Description:**

I want to create a multi-app project, I am guided by the documentation:https://ionicframework.com/docs/cli/configuration#project-structure

I understand that one of the recommended structures is

![image](https://github.com/ionic-team/ionic-cli/assets/7276332/b7275b20-ab35-4cd2-83b6-453afb324802)

but it does not work. First, when executing ionic start, the app is created outside apps and second, if I execute ionic start with the --no-deps parameter, it still installs the dependencies.

I am a beginner with using monorepos, but what I understand is that the image structure should be respected: package.json and angular.json in common for all apps.

I've tried using this: https://github.com/ionic-team/ionic-cli/wiki/Angular-Monorepo but running ionic g gives me an error and I can't create anything.

I also tried to use nx with the @nxext/ionic-angular extension but it's horrible the way it works, since there are errors in the app.routing.ts, I can't use ng or ionic

I have also tried creating 2 apps, but it creates 2 complete projects without meeting the objective already described

Can you help me please?

**My `ionic info`:**
![image](https://github.com/ionic-team/ionic-cli/assets/7276332/8386b1e3-591e-4ae2-9c6f-572b28fde19c)

貢獻指南

開啟貢獻指南

研究方向

Start with the CLI configuration project-structure documentation and reproduce the reported `ionic start` and `ionic start --no-deps` behavior. Compare the result with the Angular monorepo guidance and verify whether apps are created under `apps`, shared `package.json` and `angular.json` are honored, and dependencies are skipped with `--no-deps`.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, typescript
領域
build-system, cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。