Support for environment variables
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- JavaScript
- スター
- 509
- フォーク
- 82
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 50
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
UI5/cli のほかの issue
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changesオープンmodule/ui5-builder module/ui5-fs module/ui5-project
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
module/ui5-project
難易度 4/5 3〜5日 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
[ROADMAP] UI5 CLI 6.0 / Specification Version 6.0再び着手できるかも @flovogt が 67 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンroadmap
UI5/cli#1485 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
build excludes from application project are not applied to dependencies再び着手できるかも @flovogt が 41 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
UI5/cli#1446 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Option to specify custom UI5 config for workspace dependency resolution再び着手できるかも @flovogt が 167 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
UI5/cli#1369 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
[quality] Nothing keeps docs/skills/manifest.md in sync with docs/skills/*.md対応中かも @hivecommons-hive が今日担当しました。 オープンagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31 quality testing
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
agent:blocked agent:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
turbot/guardrails-fn#46 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
needs verification
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 6 日以内に返信