[QUESTION] Use Library with a different yaml file

Ouverte
#1,070 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
20/100
Type d'issue
Fonctionnalité
Clarté
À clarifier
Activité
À l'abandon
Stack technique
javascript
Domaine
cli, tooling

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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!

Langage dominant
JavaScript
Étoiles
510
Forks
80
Merge moyen
2 j 22 h
PR mergées (30 j)
12

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de UI5/cli

Toutes les issues de UI5/cli

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.