[QUESTION] Use Library with a different yaml file

未关闭
#1,070 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
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 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

UI5/cli 的其他 Issue

查看 UI5/cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。