Support for environment variables
Maintainer thường phản hồi trong vòng 1 ngà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
Hướng nghiên cứu
No files or tests are named. Start by tracing how the UI5 CLI reads YAML configuration and passes middleware and task configuration, then determine where environment-variable and dotenv resolution belongs; done means placeholders are resolved before middleware or task execution with dotenv supported out of the box.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe.
I would like to have an out of the box supported standard approach to use environment variables to configure my middlewares and tasks.
Why? As one of the maintainers of the middleware in the open-ux-tools, I have noticed a repetitive pattern: usage of environment variables. In nearly all our middlewares/tasks we support some kind of usage of environment variables as input. A quick search through other middlewares also shows that we are not the only ones but many others also have their way of allowing to provide parts of the configuration as env variables.
The problem is that everybody does their own thing leading to inconsistencies of how to use env variables.
Describe the solution you'd like
I'd prefer a very simple solution allowing me to define environment variable placeholders in my yaml e.g.
server:
customMiddleware:
- name: preview-middleware
afterMiddleware: compression
configuration:
debug: ${DEBUG}
The UI5 CLI should resolve the environment variable before calling my middleware so that the middleware implementation does not have to bother.
Please also support dotenv out of the box as part of the same feature.
Describe alternatives you've considered
No.
Additional context
No.
- Ngôn ngữ chính
- JavaScript
- Star
- 509
- Fork
- 82
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 54
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc 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 UI5/cli
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changesĐang mởmodule/ui5-builder module/ui5-fs module/ui5-project
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
module/ui5-project
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[ROADMAP] UI5 CLI 6.0 / Specification Version 6.0Có thể làm lại được @flovogt đã nhận 72 ngày trước và không có pull request nào đang mở. Đang mởroadmap
UI5/cli#1485 · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
build excludes from application project are not applied to dependenciesCó thể làm lại được @flovogt đã nhận 46 ngày trước và không có pull request nào đang mở. Đang mở
UI5/cli#1446 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Option to specify custom UI5 config for workspace dependency resolutionCó thể đã có người làm @flovogt đã nhận 172 ngày trước. Đang mở
UI5/cli#1369 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Billionmail/BillionMail#389 ·
-
beginner-friendly category:finding-titles community enhancement first-timers-only good first issue hacktoberfest help wanted low hanging fruit micro-contribution type: task up-for-grabs
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
Berserk-hub150/skillhawk#227 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 8 ngày
-
Remove responsibilities not working in Custom Roles & BadgesCó thể đã có người làm @thomasgwatson đã nhận hôm nay. Đang mởagent-ready agent:needs-test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
gkjohnson/three-mesh-bvh#933 ·
-
scope: curriculum status: waiting triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
freeCodeCamp/freeCodeCamp#71076 ·
Maintainer thường phản hồi trong vòng 1 ngày