@ui5/cli 3.0.0-rc.2 → 3.0.0-rc.3
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 +13 -1
- package/README.md +2 -3
- package/lib/cli/middlewares/logger.js +7 -8
- package/npm-shrinkwrap.json +712 -955
- package/package.json +14 -15
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,18 @@
|
|
|
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-cli/compare/v3.0.0-rc.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-cli/compare/v3.0.0-rc.3...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v3.0.0-rc.3"></a>
|
|
8
|
+
## [v3.0.0-rc.3] - 2023-01-23
|
|
9
|
+
### Dependency Updates
|
|
10
|
+
- Bump [@ui5](https://github.com/ui5)/project from 3.0.0-rc.3 to 3.0.0-rc.4 [`c6a817e`](https://github.com/SAP/ui5-cli/commit/c6a817e044fbf10520c255ead490030cf7ffdf21)
|
|
11
|
+
- Bump [@ui5](https://github.com/ui5)/server from 3.0.0-rc.0 to 3.0.0-rc.1 [`325731d`](https://github.com/SAP/ui5-cli/commit/325731d4f65171d1fa8a7765f5ce670491ba56ba)
|
|
12
|
+
- Bump [@ui5](https://github.com/ui5)/builder from 3.0.0-rc.1 to 3.0.0-rc.2 [`bb2a9ba`](https://github.com/SAP/ui5-cli/commit/bb2a9babfff14080f41d5e88e8613d8b62200c24)
|
|
13
|
+
- Bump [@ui5](https://github.com/ui5)/fs from 3.0.0-rc.2 to 3.0.0-rc.3 [`b2ac460`](https://github.com/SAP/ui5-cli/commit/b2ac46064cd6a7278441599fa057625a8604ab4f)
|
|
14
|
+
- Bump [@ui5](https://github.com/ui5)/fs from 3.0.0-rc.1 to 3.0.0-rc.2 [`896ce1b`](https://github.com/SAP/ui5-cli/commit/896ce1bc791474f853835a2445ce9affba2a36ea)
|
|
15
|
+
- Bump [@ui5](https://github.com/ui5)/logger from 3.0.1-rc.0 to 3.0.1-rc.1 [`939745f`](https://github.com/SAP/ui5-cli/commit/939745fe83ed04837758bd33d141f124ce093f4c)
|
|
16
|
+
|
|
6
17
|
|
|
7
18
|
<a name="v3.0.0-rc.2"></a>
|
|
8
19
|
## [v3.0.0-rc.2] - 2023-01-11
|
|
@@ -911,6 +922,7 @@ Only Node.js v10 or higher is supported.
|
|
|
911
922
|
<a name="v0.0.1"></a>
|
|
912
923
|
## v0.0.1 - 2018-06-06
|
|
913
924
|
|
|
925
|
+
[v3.0.0-rc.3]: https://github.com/SAP/ui5-cli/compare/v3.0.0-rc.2...v3.0.0-rc.3
|
|
914
926
|
[v3.0.0-rc.2]: https://github.com/SAP/ui5-cli/compare/v3.0.0-rc.1...v3.0.0-rc.2
|
|
915
927
|
[v3.0.0-rc.1]: https://github.com/SAP/ui5-cli/compare/v3.0.0-rc.0...v3.0.0-rc.1
|
|
916
928
|
[v3.0.0-rc.0]: https://github.com/SAP/ui5-cli/compare/v3.0.0-beta.5...v3.0.0-rc.0
|
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
3
|
# ui5-cli
|
|
4
|
-
|
|
5
|
-
> UI5 Command Line Interface
|
|
4
|
+
> `ui5` Command Line Interface
|
|
6
5
|
> Part of the [UI5 Tooling](https://github.com/SAP/ui5-tooling)
|
|
7
6
|
|
|
8
7
|
[](https://api.reuse.software/info/github.com/SAP/ui5-cli)
|
|
@@ -11,7 +10,7 @@
|
|
|
11
10
|
[](https://coveralls.io/github/SAP/ui5-cli)
|
|
12
11
|
|
|
13
12
|
## Documentation
|
|
14
|
-
|
|
13
|
+
UI5 CLI documentation can be found here: [sap.github.io/ui5-tooling](https://sap.github.io/ui5-tooling/pages/CLI/)
|
|
15
14
|
|
|
16
15
|
## Contributing
|
|
17
16
|
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import logger from "@ui5/logger";
|
|
2
|
+
import ConsoleWriter from "@ui5/logger/writers/Console";
|
|
2
3
|
import {getVersion} from "../version.js";
|
|
3
4
|
/**
|
|
4
|
-
* Logger middleware
|
|
5
|
+
* Logger middleware to enable logging capabilities
|
|
5
6
|
*
|
|
6
7
|
* @param {object} argv logger arguments
|
|
7
|
-
* @returns {object} logger instance or null
|
|
8
8
|
*/
|
|
9
9
|
export async function initLogger(argv) {
|
|
10
|
-
|
|
10
|
+
ConsoleWriter.init();
|
|
11
11
|
|
|
12
|
-
const {default: logger} = await import("@ui5/logger");
|
|
13
12
|
if (argv.loglevel) {
|
|
14
13
|
logger.setLevel(argv.loglevel);
|
|
15
14
|
}
|
|
16
15
|
if (argv.verbose) {
|
|
17
16
|
logger.setLevel("verbose");
|
|
18
|
-
logger.getLogger("cli:middlewares:base")
|
|
19
|
-
|
|
17
|
+
const log = logger.getLogger("cli:middlewares:base");
|
|
18
|
+
log.verbose(`using @ui5/cli version ${getVersion()}`);
|
|
19
|
+
log.verbose(`using node version ${process.version}`);
|
|
20
20
|
}
|
|
21
|
-
return logger;
|
|
22
21
|
}
|