ui5-tooling icon indicating copy to clipboard operation
ui5-tooling copied to clipboard

Allow for custom ui5HomeDir

Open jonaszuberbuehler opened this issue 5 years ago • 5 comments

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

jonaszuberbuehler avatar Apr 07 '20 06:04 jonaszuberbuehler

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

RandomByte avatar Apr 20 '20 15:04 RandomByte

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

jonaszuberbuehler avatar Apr 20 '20 15:04 jonaszuberbuehler

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

RandomByte avatar Apr 20 '20 15:04 RandomByte

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).

jonaszuberbuehler avatar Apr 20 '20 16:04 jonaszuberbuehler

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<user> 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

nxthor avatar Apr 15 '21 09:04 nxthor