@ui5/builder 3.0.0-rc.1 → 3.0.0-rc.2
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 +8 -1
- package/README.md +3 -1
- package/lib/processors/stringReplacer.js +6 -8
- package/lib/tasks/jsdoc/generateJsdoc.js +1 -2
- package/package.json +11 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
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/v3.0.0-rc.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v3.0.0-rc.2...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v3.0.0-rc.2"></a>
|
|
8
|
+
## [v3.0.0-rc.2] - 2023-01-22
|
|
9
|
+
### Dependency Updates
|
|
10
|
+
- Bump rimraf from 3.0.2 to 4.1.1 ([#873](https://github.com/SAP/ui5-builder/issues/873)) [`ddb9660`](https://github.com/SAP/ui5-builder/commit/ddb96602fea5b96ba37afdebda0993d847462f52)
|
|
11
|
+
|
|
6
12
|
|
|
7
13
|
<a name="v3.0.0-rc.1"></a>
|
|
8
14
|
## [v3.0.0-rc.1] - 2023-01-11
|
|
@@ -837,6 +843,7 @@ to load the custom bundle file instead.
|
|
|
837
843
|
- Add ability to configure component preloads and custom bundles [`2241e5f`](https://github.com/SAP/ui5-builder/commit/2241e5ff98fd95f1f80cc74959655ae7a9c660e7)
|
|
838
844
|
|
|
839
845
|
|
|
846
|
+
[v3.0.0-rc.2]: https://github.com/SAP/ui5-builder/compare/v3.0.0-rc.1...v3.0.0-rc.2
|
|
840
847
|
[v3.0.0-rc.1]: https://github.com/SAP/ui5-builder/compare/v3.0.0-rc.0...v3.0.0-rc.1
|
|
841
848
|
[v3.0.0-rc.0]: https://github.com/SAP/ui5-builder/compare/v3.0.0-beta.6...v3.0.0-rc.0
|
|
842
849
|
[v3.0.0-beta.6]: https://github.com/SAP/ui5-builder/compare/v3.0.0-beta.5...v3.0.0-beta.6
|
package/README.md
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
[](https://coveralls.io/github/SAP/ui5-builder)
|
|
11
11
|
|
|
12
12
|
## Documentation
|
|
13
|
-
|
|
13
|
+
UI5 Builder documentation can be found here: [sap.github.io/ui5-tooling](https://sap.github.io/ui5-tooling/v3/pages/Builder/)
|
|
14
|
+
|
|
15
|
+
The UI5 Builder API Reference can be found here: [`@ui5/builder`](https://sap.github.io/ui5-tooling/v3/api/)
|
|
14
16
|
|
|
15
17
|
## Contributing
|
|
16
18
|
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/main/CONTRIBUTING.md).
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import replaceStream from "replacestream";
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* @public
|
|
5
3
|
* @module @ui5/builder/processors/stringReplacer
|
|
@@ -20,12 +18,12 @@ import replaceStream from "replacestream";
|
|
|
20
18
|
* @returns {Promise<@ui5/fs/Resource[]>} Promise resolving with modified resources
|
|
21
19
|
*/
|
|
22
20
|
export default function({resources, options: {pattern, replacement}}) {
|
|
23
|
-
return Promise.all(resources.map((resource) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
return Promise.all(resources.map(async (resource) => {
|
|
22
|
+
const content = await resource.getString();
|
|
23
|
+
const newContent = content.replaceAll(pattern, replacement);
|
|
24
|
+
if (content !== newContent) {
|
|
25
|
+
resource.setString(newContent);
|
|
26
|
+
}
|
|
29
27
|
return resource;
|
|
30
28
|
}));
|
|
31
29
|
}
|
|
@@ -3,11 +3,10 @@ const log = logger.getLogger("builder:tasks:jsdoc:generateJsdoc");
|
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import fs from "graceful-fs";
|
|
6
|
-
import
|
|
6
|
+
import rimraf from "rimraf";
|
|
7
7
|
import {promisify} from "node:util";
|
|
8
8
|
const mkdtemp = promisify(fs.mkdtemp);
|
|
9
9
|
const mkdir = promisify(fs.mkdir);
|
|
10
|
-
const rimraf = promisify(_rimraf);
|
|
11
10
|
import jsdocGenerator from "../../processors/jsdoc/jsdocGenerator.js";
|
|
12
11
|
import {createAdapter} from "@ui5/fs/resourceFactory";
|
|
13
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/builder",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.2",
|
|
4
4
|
"description": "UI5 Tooling - Builder",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"unit": "rimraf test/tmp && ava",
|
|
39
39
|
"unit-verbose": "rimraf test/tmp && cross-env UI5_LOG_LVL=verbose ava --verbose --serial",
|
|
40
40
|
"unit-watch": "rimraf test/tmp && ava --watch",
|
|
41
|
-
"unit-nyan": "rimraf test/tmp && ava --tap | tnyan",
|
|
42
41
|
"unit-xunit": "rimraf test/tmp && ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\" --tap --timeout=1m | tap-xunit --dontUseCommentsAsTestNames=true > test-results.xml",
|
|
43
42
|
"unit-inspect": "cross-env UI5_LOG_LVL=verbose ava debug --break",
|
|
44
43
|
"coverage": "rimraf test/tmp && nyc ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\"",
|
|
@@ -119,42 +118,40 @@
|
|
|
119
118
|
},
|
|
120
119
|
"dependencies": {
|
|
121
120
|
"@jridgewell/sourcemap-codec": "^1.4.14",
|
|
122
|
-
"@ui5/fs": "^3.0.0-rc.
|
|
123
|
-
"@ui5/logger": "^3.0.1-rc.
|
|
121
|
+
"@ui5/fs": "^3.0.0-rc.3",
|
|
122
|
+
"@ui5/logger": "^3.0.1-rc.1",
|
|
124
123
|
"cheerio": "1.0.0-rc.12",
|
|
125
124
|
"escape-unicode": "^0.2.0",
|
|
126
125
|
"escope": "^4.0.0",
|
|
127
126
|
"espree": "^9.4.1",
|
|
128
127
|
"graceful-fs": "^4.2.10",
|
|
129
128
|
"jsdoc": "^3.6.11",
|
|
130
|
-
"less-openui5": "^0.11.
|
|
129
|
+
"less-openui5": "^0.11.6",
|
|
131
130
|
"pretty-data": "^0.40.0",
|
|
132
|
-
"
|
|
133
|
-
"rimraf": "^3.0.2",
|
|
131
|
+
"rimraf": "^4.1.1",
|
|
134
132
|
"semver": "^7.3.8",
|
|
135
133
|
"terser": "^5.16.1",
|
|
136
134
|
"xml2js": "^0.4.23"
|
|
137
135
|
},
|
|
138
136
|
"devDependencies": {
|
|
139
137
|
"@istanbuljs/esm-loader-hook": "^0.2.0",
|
|
140
|
-
"@ui5/project": "^3.0.0-rc.
|
|
141
|
-
"ava": "^5.1.
|
|
138
|
+
"@ui5/project": "^3.0.0-rc.3",
|
|
139
|
+
"ava": "^5.1.1",
|
|
142
140
|
"chai": "^4.3.7",
|
|
143
141
|
"chai-fs": "^2.0.0",
|
|
144
142
|
"chokidar-cli": "^3.0.0",
|
|
145
143
|
"cross-env": "^7.0.3",
|
|
146
144
|
"depcheck": "^1.4.3",
|
|
147
|
-
"docdash": "^2.0.
|
|
148
|
-
"eslint": "^8.
|
|
145
|
+
"docdash": "^2.0.1",
|
|
146
|
+
"eslint": "^8.32.0",
|
|
149
147
|
"eslint-config-google": "^0.14.0",
|
|
150
|
-
"eslint-plugin-ava": "^
|
|
151
|
-
"eslint-plugin-jsdoc": "^39.6.
|
|
148
|
+
"eslint-plugin-ava": "^14.0.0",
|
|
149
|
+
"eslint-plugin-jsdoc": "^39.6.7",
|
|
152
150
|
"esmock": "^2.1.0",
|
|
153
151
|
"nyc": "^15.1.0",
|
|
154
152
|
"open-cli": "^7.1.0",
|
|
155
153
|
"recursive-readdir": "^2.2.3",
|
|
156
154
|
"sinon": "^15.0.1",
|
|
157
|
-
"tap-nyan": "^1.1.0",
|
|
158
155
|
"tap-xunit": "^2.4.1"
|
|
159
156
|
}
|
|
160
157
|
}
|