Support self-contained build without fallback dependency modules

Đang mở
#731 3 bình luận 2 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

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
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
build-system, cli

Hướng nghiên cứu

Start by tracing the ui5 build self-contained --all entry point and how framework dependencies are currently included in the build output. Compare the generated files with the requested minimal dist/ tree; done means the bundled resources remain while non-bundled fallback dependency modules can be omitted.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

module/ui5-builder

Is your feature request related to a problem? Please describe.

If a self-contained build with dependencies is performed, all framework dependencies will be also be included as non-bundled version. Although this behaviour makes sense as fallback option in case any resources were not included in the bundling, it would be good if it can be configured.

Describe the solution you'd like

In given sample application project:

  • Dependency to sap/m
  • Supported Theme: Horizon
  • Support Language: EN

It shall be possible to run a minimal self-contained build...

ui5 build self-contained --all

...that results in the following build output (simplified and no consideration of debug sources):

dist/
├── index.html
├── Component-preload.js
└── resources/
    ├── sap-ui-custom.js
    ├── ui5loader.js
    └── sap/
        ├── ui/
        │   ├── core
        │   └── messagebundle.properties/
        │       └── themes/
        │           └── sap_horizon/
        │               └── library.css
        └── m/
            ├── messagebundle.properties
            └── themes/
                └── sap_horizon/
                    └── library.css       
Ngôn ngữ chính
JavaScript
Star
510
Fork
80
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của UI5/cli

Tất cả issue của UI5/cli

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.