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

how to use value in config.js file

Open Walter52abc opened this issue 3 years ago • 1 comments

Hi experts,

Here is the scenario: I am using a .bat file to run uiveri5, uiveri5 --params.appHost=https://grcpcrmcontrollibrary-mpstandalone-manualprocedures-srv.cfapps.sap.hana.ondemand.com -- --params.spec=./test.spec.js ../conf_local.js

I want to use the value of params.appHost in a spec. and load the conf.js file like below: let oConf = require('../conf.js');

However, I only get string like '${params.appHost}' in the spec file. what I want is the value of this parameter from .bat file. Is there any way to achieve this.

Best Regards, walter

Walter52abc avatar Nov 24 '20 06:11 Walter52abc

No need to load conf.js manually, please check here: https://github.com/SAP/ui5-uiveri5/blob/master/docs/config/parameters.md

maximnaidenov avatar Nov 24 '20 08:11 maximnaidenov