@ui5/builder 2.11.2 → 2.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -1
- package/lib/processors/jsdoc/lib/transformApiJson.js +13 -4
- package/lib/tasks/buildThemes.js +6 -2
- package/lib/tasks/bundlers/generateFlexChangesBundle.js +3 -2
- package/lib/types/library/LibraryBuilder.js +1 -1
- package/lib/types/themeLibrary/ThemeLibraryBuilder.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
4
4
|
|
|
5
|
-
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v2.11.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v2.11.5...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v2.11.5"></a>
|
|
8
|
+
## [v2.11.5] - 2022-05-04
|
|
9
|
+
|
|
10
|
+
<a name="v2.11.4"></a>
|
|
11
|
+
## [v2.11.4] - 2022-02-21
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
- **generateFlexChangesBundle:** Fix minUI5Version check for UI5 v1.100.0+ ([#706](https://github.com/SAP/ui5-builder/issues/706)) [`fb1217a`](https://github.com/SAP/ui5-builder/commit/fb1217ac536c20da81526f82f2ecb03686815942)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<a name="v2.11.3"></a>
|
|
17
|
+
## [v2.11.3] - 2021-12-14
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
- Enable buildThemes for libraries without .library [`7b941a7`](https://github.com/SAP/ui5-builder/commit/7b941a797210463a9fa8ca50753662c5db373aa6)
|
|
20
|
+
|
|
6
21
|
|
|
7
22
|
<a name="v2.11.2"></a>
|
|
8
23
|
## [v2.11.2] - 2021-11-17
|
|
@@ -633,6 +648,9 @@ to load the custom bundle file instead.
|
|
|
633
648
|
- Add ability to configure component preloads and custom bundles [`2241e5f`](https://github.com/SAP/ui5-builder/commit/2241e5ff98fd95f1f80cc74959655ae7a9c660e7)
|
|
634
649
|
|
|
635
650
|
|
|
651
|
+
[v2.11.5]: https://github.com/SAP/ui5-builder/compare/v2.11.4...v2.11.5
|
|
652
|
+
[v2.11.4]: https://github.com/SAP/ui5-builder/compare/v2.11.3...v2.11.4
|
|
653
|
+
[v2.11.3]: https://github.com/SAP/ui5-builder/compare/v2.11.2...v2.11.3
|
|
636
654
|
[v2.11.2]: https://github.com/SAP/ui5-builder/compare/v2.11.1...v2.11.2
|
|
637
655
|
[v2.11.1]: https://github.com/SAP/ui5-builder/compare/v2.11.0...v2.11.1
|
|
638
656
|
[v2.11.0]: https://github.com/SAP/ui5-builder/compare/v2.10.0...v2.11.0
|
|
@@ -1386,13 +1386,16 @@ function transformer(sInputFile, sOutputFile, sLibraryFile, vDependencyAPIFiles,
|
|
|
1386
1386
|
|
|
1387
1387
|
},
|
|
1388
1388
|
|
|
1389
|
+
formatUrlToLink: function(sTarget, sText, bSAPHosted){
|
|
1390
|
+
return `<a target="_blank" rel="noopener noreferrer" href="${sTarget}">${sText}</a>
|
|
1391
|
+
<img src="./resources/sap/ui/documentation/sdk/images/${bSAPHosted ? 'link-sap' : 'link-external'}.png"
|
|
1392
|
+
title="Information published on ${bSAPHosted ? '' : 'non '}SAP site" class="sapUISDKExternalLink"/>`;
|
|
1393
|
+
},
|
|
1394
|
+
|
|
1389
1395
|
handleExternalUrl: function (sTarget, sText) {
|
|
1390
1396
|
// Check if the external domain is SAP hosted
|
|
1391
1397
|
let bSAPHosted = /^https?:\/\/([\w.]*\.)?(?:sap|hana\.ondemand|sapfioritrial)\.com/.test(sTarget);
|
|
1392
|
-
|
|
1393
|
-
return `<a target="_blank" rel="noopener noreferrer" href="${sTarget}">${sText}</a>
|
|
1394
|
-
<img src="./resources/sap/ui/documentation/sdk/images/${bSAPHosted ? 'link-sap' : 'link-external'}.png"
|
|
1395
|
-
title="Information published on ${bSAPHosted ? '' : 'non '}SAP site" class="sapUISDKExternalLink"/>`;
|
|
1398
|
+
return this.formatUrlToLink(sTarget, sText, bSAPHosted);
|
|
1396
1399
|
},
|
|
1397
1400
|
|
|
1398
1401
|
/**
|
|
@@ -1599,6 +1602,12 @@ title="Information published on ${bSAPHosted ? '' : 'non '}SAP site" class="sapU
|
|
|
1599
1602
|
return '<a target="_self" href="topic/' + aMatch[1] + '">' + sText + '</a>';
|
|
1600
1603
|
}
|
|
1601
1604
|
|
|
1605
|
+
// demo:xxx Demo, open the demonstration page in a new window
|
|
1606
|
+
aMatch = sTarget.match(/^demo:([a-zA-Z0-9\/.]*)$/);
|
|
1607
|
+
if (aMatch) {
|
|
1608
|
+
return this.formatUrlToLink("test-resources/" + aMatch[1], sText, true);
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1602
1611
|
// sap.x.Xxx.prototype.xxx - In case of prototype we have a link to method
|
|
1603
1612
|
aMatch = sTarget.match(/([a-zA-Z0-9.$_]+?)\.prototype\.([a-zA-Z0-9.$_]+)$/);
|
|
1604
1613
|
if (aMatch) {
|
package/lib/tasks/buildThemes.js
CHANGED
|
@@ -54,8 +54,12 @@ module.exports = async function({
|
|
|
54
54
|
*/
|
|
55
55
|
let availableLibraries;
|
|
56
56
|
if (pAvailableLibraries) {
|
|
57
|
-
availableLibraries =
|
|
58
|
-
|
|
57
|
+
availableLibraries = [];
|
|
58
|
+
(await pAvailableLibraries).forEach((resource) => {
|
|
59
|
+
const library = path.dirname(resource.getPath());
|
|
60
|
+
if (!availableLibraries.includes(library)) {
|
|
61
|
+
availableLibraries.push(library);
|
|
62
|
+
}
|
|
59
63
|
});
|
|
60
64
|
}
|
|
61
65
|
let availableThemes;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const log = require("@ui5/logger").getLogger("builder:tasks:bundlers:generateFlexChangesBundle");
|
|
2
2
|
const flexChangesBundler = require("../../processors/bundlers/flexChangesBundler");
|
|
3
|
+
const semver = require("semver");
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Task to create changesBundle.json file containing all changes stored in the /changes folder for easier consumption
|
|
@@ -68,9 +69,9 @@ module.exports = async function({workspace, taskUtil, options: {namespace}}) {
|
|
|
68
69
|
const allResources = await workspace.byGlob(
|
|
69
70
|
`${pathPrefix}/changes/*.{change,variant,ctrl_variant,ctrl_variant_change,ctrl_variant_management_change}`);
|
|
70
71
|
if (allResources.length > 0) {
|
|
71
|
-
const version = await readManifestMinUI5Version();
|
|
72
|
+
const version = semver.coerce(await readManifestMinUI5Version());
|
|
72
73
|
let hasFlexBundleVersion = false;
|
|
73
|
-
if (
|
|
74
|
+
if (semver.compare(version, "1.73.0") >= 0) {
|
|
74
75
|
hasFlexBundleVersion = true;
|
|
75
76
|
}
|
|
76
77
|
const processedResources = await flexChangesBundler({
|
|
@@ -176,7 +176,7 @@ class LibraryBuilder extends AbstractBuilder {
|
|
|
176
176
|
dependencies: resourceCollections.dependencies,
|
|
177
177
|
options: {
|
|
178
178
|
projectName: project.metadata.name,
|
|
179
|
-
librariesPattern: !taskUtil.isRootProject() ? "/resources
|
|
179
|
+
librariesPattern: !taskUtil.isRootProject() ? "/resources/**/(*.library|library.js)" : undefined,
|
|
180
180
|
themesPattern: !taskUtil.isRootProject() ? "/resources/sap/ui/core/themes/*" : undefined,
|
|
181
181
|
inputPattern
|
|
182
182
|
}
|
|
@@ -29,7 +29,7 @@ class ThemeLibraryBuilder extends AbstractBuilder {
|
|
|
29
29
|
dependencies: resourceCollections.dependencies,
|
|
30
30
|
options: {
|
|
31
31
|
projectName: project.metadata.name,
|
|
32
|
-
librariesPattern: !taskUtil.isRootProject() ? "/resources
|
|
32
|
+
librariesPattern: !taskUtil.isRootProject() ? "/resources/**/(*.library|library.js)" : undefined,
|
|
33
33
|
themesPattern: !taskUtil.isRootProject() ? "/resources/sap/ui/core/themes/*" : undefined,
|
|
34
34
|
inputPattern: "/resources/**/themes/*/library.source.less"
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/builder",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.5",
|
|
4
4
|
"description": "UI5 Tooling - Builder",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
@@ -110,31 +110,31 @@
|
|
|
110
110
|
"escape-unicode": "^0.2.0",
|
|
111
111
|
"escope": "^3.6.0",
|
|
112
112
|
"espree": "^6.2.1",
|
|
113
|
-
"globby": "^11.0
|
|
114
|
-
"graceful-fs": "^4.2.
|
|
115
|
-
"jsdoc": "^3.6.
|
|
113
|
+
"globby": "^11.1.0",
|
|
114
|
+
"graceful-fs": "^4.2.10",
|
|
115
|
+
"jsdoc": "^3.6.10",
|
|
116
116
|
"less-openui5": "^0.11.2",
|
|
117
117
|
"make-dir": "^3.1.0",
|
|
118
118
|
"pretty-data": "^0.40.0",
|
|
119
119
|
"pretty-hrtime": "^1.0.3",
|
|
120
120
|
"replacestream": "^4.0.3",
|
|
121
121
|
"rimraf": "^3.0.2",
|
|
122
|
-
"semver": "^7.3.
|
|
123
|
-
"terser": "^5.
|
|
122
|
+
"semver": "^7.3.7",
|
|
123
|
+
"terser": "^5.13.1",
|
|
124
124
|
"xml2js": "^0.4.23",
|
|
125
125
|
"yazl": "^2.5.1"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"ava": "^3.15.0",
|
|
129
|
-
"chai": "^4.3.
|
|
129
|
+
"chai": "^4.3.6",
|
|
130
130
|
"chai-fs": "^2.0.0",
|
|
131
131
|
"chokidar-cli": "^3.0.0",
|
|
132
132
|
"cross-env": "^7.0.3",
|
|
133
|
-
"depcheck": "^1.4.
|
|
133
|
+
"depcheck": "^1.4.3",
|
|
134
134
|
"docdash": "^1.2.0",
|
|
135
135
|
"eslint": "^7.32.0",
|
|
136
136
|
"eslint-config-google": "^0.14.0",
|
|
137
|
-
"eslint-plugin-jsdoc": "^37.
|
|
137
|
+
"eslint-plugin-jsdoc": "^37.9.7",
|
|
138
138
|
"extract-zip": "^2.0.1",
|
|
139
139
|
"mock-require": "^3.0.3",
|
|
140
140
|
"nyc": "^15.1.0",
|