@ui5/cli 3.0.0-beta.5 → 3.0.0-rc.0

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 CHANGED
@@ -2,7 +2,19 @@
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-beta.5...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-cli/compare/v3.0.0-rc.0...HEAD).
6
+
7
+ <a name="v3.0.0-rc.0"></a>
8
+ ## [v3.0.0-rc.0] - 2022-12-23
9
+ ### Dependency Updates
10
+ - Bump [@ui5](https://github.com/ui5)/project from 3.0.0-beta.5 to 3.0.0-rc.0 [`dbddd01`](https://github.com/SAP/ui5-cli/commit/dbddd01f2d6fc15404a5e26ae03dbf6844f5a37a)
11
+ - Bump [@ui5](https://github.com/ui5)/server from 3.0.0-beta.4 to 3.0.0-rc.0 [`dbde957`](https://github.com/SAP/ui5-cli/commit/dbde957136ac06eba675daef531d2903f22551c9)
12
+ - Bump [@ui5](https://github.com/ui5)/builder from 3.0.0-beta.6 to 3.0.0-rc.0 [`9bd37b4`](https://github.com/SAP/ui5-cli/commit/9bd37b400d20ea9e26a8fafc15dceac93f233134)
13
+ - Bump [@ui5](https://github.com/ui5)/fs from 3.0.0-beta.4 to 3.0.0-rc.0 [`c292013`](https://github.com/SAP/ui5-cli/commit/c292013387f0ee8b554c2bd220e067350eef4f2a)
14
+ - Bump [@ui5](https://github.com/ui5)/logger from 3.0.1-beta.1 to 3.0.1-rc.0 [`b5b7a2a`](https://github.com/SAP/ui5-cli/commit/b5b7a2ac4d89134cbe83bdd6e39f706b2a9cb36b)
15
+ - Bump [@ui5](https://github.com/ui5)/project from 3.0.0-beta.4 to 3.0.0-beta.5 [`484a1b5`](https://github.com/SAP/ui5-cli/commit/484a1b5403f357297602195d3ed8cbc04d7749a6)
16
+ - Bump [@ui5](https://github.com/ui5)/builder from 3.0.0-beta.5 to 3.0.0-beta.6 [`751bc7d`](https://github.com/SAP/ui5-cli/commit/751bc7dee1ed4bda54d3bc877f16563de324a23e)
17
+
6
18
 
7
19
  <a name="v3.0.0-beta.5"></a>
8
20
  ## [v3.0.0-beta.5] - 2022-12-12
@@ -885,6 +897,7 @@ Only Node.js v10 or higher is supported.
885
897
  <a name="v0.0.1"></a>
886
898
  ## v0.0.1 - 2018-06-06
887
899
 
900
+ [v3.0.0-rc.0]: https://github.com/SAP/ui5-cli/compare/v3.0.0-beta.5...v3.0.0-rc.0
888
901
  [v3.0.0-beta.5]: https://github.com/SAP/ui5-cli/compare/v3.0.0-beta.4...v3.0.0-beta.5
889
902
  [v3.0.0-beta.4]: https://github.com/SAP/ui5-cli/compare/v3.0.0-beta.3...v3.0.0-beta.4
890
903
  [v3.0.0-beta.3]: https://github.com/SAP/ui5-cli/compare/v3.0.0-beta.2...v3.0.0-beta.3
package/jsdoc.json CHANGED
@@ -28,7 +28,7 @@
28
28
  "openGraph": {
29
29
  "title": "UI5 Tooling - API Reference",
30
30
  "type": "website",
31
- "image": "https://sap.github.io/ui5-tooling/docs/images/UI5_logo_wide.png",
31
+ "image": "https://sap.github.io/ui5-tooling/v3/images/UI5_logo_wide.png",
32
32
  "site_name": "UI5 Tooling - API Reference",
33
33
  "url": "https://sap.github.io/ui5-tooling/"
34
34
  },
@@ -101,29 +101,20 @@ build.builder = function(cli) {
101
101
  type: "boolean"
102
102
  })
103
103
  .example("ui5 build", "Preload build for project without dependencies")
104
-
105
- // TODO 3.0: Update examples
106
- .example("ui5 build self-contained --all", "Self-contained build for project including dependencies")
107
- .example("ui5 build --all --exclude-task=* --include-task=createDebugFiles generateAppPreload",
108
- "Build project and dependencies but only apply the createDebugFiles- and generateAppPreload tasks")
109
- .example("ui5 build --all --include-task=createDebugFiles --exclude-task=generateAppPreload",
110
- "Build project and dependencies by applying all default tasks including the createDebugFiles " +
111
- "task and excluding the generateAppPreload task")
112
- .example("ui5 build dev --all --dev-exclude-project=sap.ui.core sap.m",
113
- "Build project and dependencies in dev mode, except \"sap.ui.core\" and \"sap.m\" " +
114
- "(useful in combination with --include-task)")
115
- .example("ui5 build dev",
116
- "Build project and dependencies in dev mode. Only a set of essential tasks is executed.")
104
+ .example("ui5 build self-contained", "Self-contained build for project")
105
+ .example("ui5 build --exclude-task=* --include-task=minify generateComponentPreload",
106
+ "Build project but only apply the minify- and generateComponentPreload tasks")
107
+ .example("ui5 build --include-task=minify --exclude-task=generateComponentPreload",
108
+ "Build project by applying all default tasks including the minify " +
109
+ "task and excluding the generateComponentPreload task")
117
110
  .example("ui5 build --experimental-css-variables",
118
- "Preload build for project without dependencies but with CSS variable artifacts");
111
+ "Preload build with experimental CSS variables artifacts");
119
112
  };
120
113
 
121
114
  async function handleBuild(argv) {
122
- const {default: logger} = await import("@ui5/logger");
123
115
  const {graphFromStaticFile, graphFromPackageDependencies} = await import("@ui5/project/graph");
124
116
 
125
117
  const command = argv._[argv._.length - 1];
126
- logger.setShowProgress(true);
127
118
 
128
119
  let graph;
129
120
  if (argv.dependencyDefinition) {
@@ -144,7 +135,7 @@ async function handleBuild(argv) {
144
135
  destPath: argv.dest,
145
136
  cleanDest: argv["clean-dest"],
146
137
  createBuildManifest: argv["create-build-manifest"],
147
- complexDependencyIncludes: {
138
+ dependencyIncludes: {
148
139
  includeAllDependencies: argv["include-all-dependencies"],
149
140
  includeDependency: argv["include-dependency"],
150
141
  includeDependencyRegExp: argv["include-dependency-regexp"],
@@ -45,10 +45,7 @@ tree.handler = async function(argv) {
45
45
 
46
46
  const projects = Object.create(null);
47
47
  const indentWidth = 4;
48
- await graph.traverseBreadthFirst(async ({project, getDependencies}) => {
49
- const deps = getDependencies().map((dep) => {
50
- return dep.getName();
51
- });
48
+ await graph.traverseBreadthFirst(async ({project, dependencies}) => {
52
49
  projects[project.getName()] = {
53
50
  render: function(indentation, connectorIndices, lastChild) {
54
51
  let baseString = " ".repeat(indentation * indentWidth);
@@ -63,12 +60,12 @@ tree.handler = async function(argv) {
63
60
  chalk.dim.italic(`${project.getPath()}`)
64
61
  );
65
62
 
66
- const lastIdx = deps.length -1;
63
+ const lastIdx = dependencies.length - 1;
67
64
  const newConnectorIndices = [...connectorIndices];
68
65
  if (!lastChild) {
69
66
  newConnectorIndices.push(indentation * indentWidth);
70
67
  }
71
- deps.forEach((dep, i) => {
68
+ dependencies.forEach((dep, i) => {
72
69
  projects[dep].render(indentation + 1, newConnectorIndices, i === lastIdx);
73
70
  });
74
71
  }
@@ -80,12 +77,16 @@ tree.handler = async function(argv) {
80
77
  projects[projectKeys[0]].render(0, [], true);
81
78
  console.log("");
82
79
 
83
- const extensions = graph.getAllExtensions();
84
- console.log(chalk.bold.underline(`Extensions (${extensions.length}):`));
85
- if (extensions.length) {
86
- extensions.forEach((extension) => {
80
+ const extensionNames = graph.getExtensionNames();
81
+ const extensionCount = extensionNames.length;
82
+ console.log(chalk.bold.underline(`Extensions (${extensionCount}):`));
83
+ if (extensionCount) {
84
+ const lastIdx = extensionCount - 1;
85
+ extensionNames.forEach((extensionName, idx) => {
86
+ const extension = graph.getExtension(extensionName);
87
+ const connectorString = idx === lastIdx ? "╰─" : "├─";
87
88
  console.log(
88
- `├─ ${extension.getName()} ` +
89
+ `${connectorString} ${extensionName} ` +
89
90
  chalk.dim(`(${extension.getVersion()}, ${extension.getType()}) `) +
90
91
  chalk.dim.italic(`${extension.getPath()}`));
91
92
  });