SAP / ui5-tooling

An open and modular toolchain to develop state of the art applications based on the UI5 framework
https://sap.github.io/ui5-tooling
Apache License 2.0
465 stars 69 forks source link

Allow for custom ui5HomeDir #307

Open jonaszuberbuehler opened 4 years ago

jonaszuberbuehler commented 4 years ago

It would be nice to pass in a custom ui5HomeDir that get's picked up by AbstractResolver.

RandomByte commented 4 years ago

Hey, great idea! Just to make sure, do you mean a parameter on the normalizer or (also) a CLI parameter?

jonaszuberbuehler commented 4 years ago

@RandomByte My use case was targeting a param in ui5.yaml.

RandomByte commented 4 years ago

So a per-project configuration and not per-user? What would be your use case? A path relative to the project?

jonaszuberbuehler commented 4 years ago

AFAIR (lots happens in two weeks :)) I was trying out the new framework option where you don't need to specify the openui5 deps in package.json. Therefore my IDE (IntelliJ IDEA) was having a hard time w/ code completion since I normally define the @openui5 node modules as JS libraries. Digging through the code I found the ui5HomeDir.

Maybe my use case is too specific but having the homeDir relatively to the project would be convenient (like node_modules).

nxthor commented 3 years ago

Would this custom parameter also solve my problem?

Context: We work on a shared Citrix-Host (closed network) and have a local home in C:\Users\ and a personal network volume p:\ . Now we have problems with storing larger folders like the .ui5 folder in the C-Home since this is mounted in a different way than P:\ and the mapping seems to be an issue inside the system drive. Also we may not override the $HOME environment variable due to security settings and dependencies on a systemwide scale. We would like to keep all the .ui5 data inside the P-Home like we are able with the npm-data (chache, prefix,tmp and local-only modules, .npmrc is small enough). But we are not able to override $HOME (C-Home) in the userland.

I think it would be of great value to set a custom path to the .ui5 folder.

Concerning shared data: the P-Home is personal to each user, but it would be also interesting to host at least the framework-files in a systemwide .ui5 Folder, since we cannot download on demand and would avoid duplicated framework-data for reach user.

For more context, there is also a brief converation on https://blogs.sap.com/2020/04/01/ui5ers-buzz-49-the-ui5-tooling-and-sapui5-the-next-step/comment-page-1/#comment-535938

if my post needs clarification , please let me know, so I can elaborate. best regards! Tim