@sap-ux/ui5-config
Advanced tools
Comparing version 0.23.1 to 0.24.0
@@ -85,2 +85,10 @@ import type { BspApp, AbapTarget, Configuration, CustomMiddleware, CustomTask, FioriToolsProxyConfig, FioriToolsProxyConfigBackend, FioriToolsProxyConfigUI5, Ui5Document, Adp, MockserverConfig, ServeStaticPath } from './types'; | ||
/** | ||
* Adds UI5 libraries to the yaml configuration if they do not already exist. | ||
* | ||
* @param {string[]} addLibs - to add these libraries | ||
* @returns {UI5Config} the UI5Config instance | ||
* @memberof UI5Config | ||
*/ | ||
addUI5Libs(addLibs: string[]): this; | ||
/** | ||
* Adds a list of custom tasks to the config. | ||
@@ -87,0 +95,0 @@ * |
@@ -150,2 +150,24 @@ "use strict"; | ||
/** | ||
* Adds UI5 libraries to the yaml configuration if they do not already exist. | ||
* | ||
* @param {string[]} addLibs - to add these libraries | ||
* @returns {UI5Config} the UI5Config instance | ||
* @memberof UI5Config | ||
*/ | ||
addUI5Libs(addLibs) { | ||
const libs = this.document.getSequence({ path: 'framework.libraries' }); | ||
if (libs) { | ||
addLibs.forEach((libName) => { | ||
if (!this.document.findItem(libs, (lib) => lib.name === libName)) { | ||
libs.add({ name: libName }); | ||
} | ||
}); | ||
this.document.setIn({ | ||
path: 'framework.libraries', | ||
value: libs.toJSON() | ||
}); | ||
} | ||
return this; | ||
} | ||
/** | ||
* Adds a list of custom tasks to the config. | ||
@@ -152,0 +174,0 @@ * |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.23.1", | ||
"version": "0.24.0", | ||
"license": "Apache-2.0", | ||
@@ -30,3 +30,3 @@ "main": "dist/index.js", | ||
"@types/semver": "7.5.2", | ||
"@sap-ux/store": "0.7.0" | ||
"@sap-ux/store": "0.9.1" | ||
}, | ||
@@ -33,0 +33,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64524
1306