Multi-App Configuration Issue

オープン
#4,121 コメント 29 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
typescript
領域
cli, tooling

調査の方向性

Ionic CLI の設定ドキュメントから始め、ionic start my-appsionic start app1 --no-deps、および Ionic CLI 5.2.5 での 2 つ目のアプリを使ってマルチアプリ構成を再現します。生成された ionic.config.json ファイルを調査し、ドキュメントに記載された共有ルートの動作が CLI と一致するかを確認します。期待される設定動作が明らかになり、ドキュメントまたは CLI の問題が明確に特定できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

triage

Describe the bug
https://ionicframework.com/docs/cli/configuration#config-file

In a multi-app project, apps share a single ionic.config.json file at the root of the repository instead of each app having their own.

Is this correct for the latest version of Ionic?
I created the multi-apps with no-deps parameter and both apps also have their own ionic-config.json. Also .gitignore, tslint.json, package.json.

To Reproduce

  1. Create the root project. ionic start my-apps (blank template)
  2. Open the ionic.config.json and add the property "projects": {}.
  3. Create your apps by ionic start app1 --no-deps. (app1 and app2) (blank template)
  4. See that every app has its own ionic.config.json.

Expected behavior
I'm not sure how the multi-app feature of Ionic works.
I though I have a root project with all the project files like package.json and ionic.config.json.
And the "sub-apps" only contains the sources without separated configuration files etc.
Ok they can have a package.json. But why are there all the dependencies, even though the root dependencies should be used? Or do I understand something wrong? Or is the documentation wrong?

Screenshots
If applicable, add screenshots to help explain your problem.
image

Browser and OS (please complete the following information):

  • OS: Windows 10 Pro 64-bit (1903)
  • Ionic CLI: 5.2.5

Additional context
I want to create one app base (root) with multi-app feature. Each apps should use the shared root components, services, etc. But an app can also have their own components.
TSLint, TSConfig, Unit-Test-Config, gitignore, etc. should be shared. But currently each subapp have a own config. Exactly the same. DRY.
Maybe this is a bug for the Ionic core repository or CLI? But perhaps it's only a documentation issue. I don't know who this should actual work. This is my first attempt of building a multi-app.
But the fact is, each app in a multi-app project has its own ionic.config.json. The docs says there should only be one shared in the root. Or does this mean, I should delete the config files in my sub-apps?

主要言語
TypeScript
スター
2k
フォーク
681
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/ionic-cli のほかの issue

ionic-team/ionic-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。