[QUESTION] Use Library with a different yaml file

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

メンテナーはふだん 2 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript
領域
cli, tooling

調査の方向性

Review the application's ui5.yaml and the linked library's ui5.yaml, especially the resources.configuration.paths entries. Then investigate UI5 Tooling's dependency configuration and command-line options; done means establishing whether a supported source-versus-dist switch exists and documenting or scoping the required change.

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

説明

Hi UI5 Team,

Goal
In my application I sometimes want to consume the sources of an internal library (for live debugging), and at other times the compiled dist bundle – without touching the library’s own ui5.yaml.

Setup

my-app/                     (UI5 application)
  ui5.yaml
  package.json  ← npm link @my/org/ui5-utilslib

ui5-utilslib/               (linked library)
  ui5.yaml    # current default – points to dist
  src/
  dist/

ui5-utilslib/ui5.yaml today:

type: library
resources:
  configuration:
    paths:
      src: dist/resources/customnamespace/
      test: dist/customnamespace/

If I manually change those two paths to src/ and test/, the app uses the original sources, which is exactly what I need while developing – but that means hacking the library on disk.

Question
Is there a way in UI5 Tooling (e.g., via command-line flag, environment variable, or an override in the application’s ui5.yaml) to tell the CLI:

“For the dependency @my/org/ui5-utilslib, load from src/ instead of dist/”?

Or is there a recommended alternative to switch between the two variants without modifying the library itself?

Thanks for any hints!

主要言語
JavaScript
スター
510
フォーク
80
平均マージ
2日 22時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

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

UI5/cli のほかの issue

UI5/cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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