Multi-App Configuration Issue
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
Hướng nghiên cứu
Bắt đầu với tài liệu cấu hình Ionic CLI và tái tạo thiết lập nhiều ứng dụng bằng ionic start my-apps, ionic start app1 --no-deps và một ứng dụng thứ hai trên Ionic CLI 5.2.5. Kiểm tra các tệp ionic.config.json được tạo ra và xác định xem hành vi thư mục gốc dùng chung được ghi lại trong tài liệu có khớp với CLI hay không. Được xem là hoàn tất khi hành vi cấu hình được mong đợi đã được xác lập và vấn đề trong tài liệu hoặc CLI đã được xác định rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Create the root project.
ionic start my-apps(blank template) - Open the
ionic.config.jsonand add the property"projects": {}. - Create your apps by
ionic start app1 --no-deps. (app1 and app2) (blank template) - 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.

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?
- Ngôn ngữ chính
- TypeScript
- Star
- 2k
- Fork
- 681
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ionic-team/ionic-cli
-
triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
ionic-team/ionic-cli#5016 ·
-
ionic-cli development status Đang mởtriage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
ionic-team/ionic-cli#5131 ·
-
triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
ionic-team/ionic-cli#5130 ·
-
triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
ionic-team/ionic-cli#5129 ·
-
triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
ionic-team/ionic-cli#5127 · 2 bình luận ·
Tất cả issue của ionic-team/ionic-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
copse-dev/agent-pane#2953 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Bug]: Matrix progress drafts fail with "Matrix runtime not initialized" during tool activity Đang mởbug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Client support matrix inclusion Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
calcite-components needs triage refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Esri/calcite-design-system#15203 ·