generator-easy-ui5 3.2.2 → 3.3.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 +10 -0
- package/README.md +1 -1
- package/generators/app/index.js +7 -4
- package/generators/app/postinstall.js +3 -3
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [3.2.2](https://github.com/SAP/generator-easy-ui5/compare/v3.2.0...v3.2.2) (2022-02-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* usage of proper gh org for logging and download ([#94](https://github.com/SAP/generator-easy-ui5/issues/94)) ([a88d4db](https://github.com/SAP/generator-easy-ui5/commit/a88d4dbb0a1f5ed3cf60f7ed0297c651222a83fb))
|
|
7
|
+
* use the org name of the selected generator for downloading the corresponding repo ([d9ca4dc](https://github.com/SAP/generator-easy-ui5/commit/d9ca4dc3170e0507199799d2e14db327cba4d871))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
# [3.2.0](https://github.com/SAP/generator-easy-ui5/compare/v3.1.5...v3.2.0) (2022-02-03)
|
|
2
12
|
|
|
3
13
|
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ The purpose of this generator is to guide you on your first steps with [SAPUI5](
|
|
|
20
20
|
|
|
21
21
|
## Requirements
|
|
22
22
|
|
|
23
|
-
- Get [Node.js](https://nodejs.org/en/download/) (**version
|
|
23
|
+
- Get [Node.js](https://nodejs.org/en/download/) (**version 14 or higher** ⚠️)
|
|
24
24
|
|
|
25
25
|
## Download and Installation
|
|
26
26
|
|
package/generators/app/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const { hasYarn } = require("yarn-or-npm");
|
|
|
7
7
|
|
|
8
8
|
const path = require("path");
|
|
9
9
|
const fs = require("fs");
|
|
10
|
-
const {
|
|
10
|
+
const { rm } = require("fs").promises;
|
|
11
11
|
|
|
12
12
|
const { Octokit } = require("@octokit/rest");
|
|
13
13
|
const { throttling } = require("@octokit/plugin-throttling");
|
|
@@ -138,7 +138,10 @@ module.exports = class extends Generator {
|
|
|
138
138
|
|
|
139
139
|
async prompting() {
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
// Have Yeoman greet the user.
|
|
142
|
+
if (!this.options.embedded) {
|
|
143
|
+
this.log(yosay(`Welcome to the ${chalk.red("easy-ui5")} generator!`));
|
|
144
|
+
}
|
|
142
145
|
|
|
143
146
|
const home = path.join(__dirname, "..", "..");
|
|
144
147
|
|
|
@@ -346,7 +349,7 @@ module.exports = class extends Generator {
|
|
|
346
349
|
}
|
|
347
350
|
// remove if the SHA marker doesn't exist => outdated!
|
|
348
351
|
this._showBusy(` Removing old "${generator.name}" templates`);
|
|
349
|
-
await
|
|
352
|
+
await rm(generatorPath, { recursive: true });
|
|
350
353
|
}
|
|
351
354
|
}
|
|
352
355
|
|
|
@@ -385,7 +388,7 @@ module.exports = class extends Generator {
|
|
|
385
388
|
}
|
|
386
389
|
this._showBusy(` Preparing "${generator.name}"`);
|
|
387
390
|
await new Promise(function (resolve, reject) {
|
|
388
|
-
spawn((hasYarn() ? "yarn" : "npm"), ["install", "--no-progress"], {
|
|
391
|
+
spawn((hasYarn() ? "yarn" : "npm"), ["install", "--no-progress", "--ignore-engines"], {
|
|
389
392
|
stdio: this.config.verbose ? "inherit" : "ignore",
|
|
390
393
|
cwd: generatorPath,
|
|
391
394
|
env: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const spawn = require("cross-spawn");
|
|
3
3
|
const fs = require("fs");
|
|
4
|
-
const {
|
|
4
|
+
const { rm } = require("fs").promises;
|
|
5
5
|
const path = require("path");
|
|
6
6
|
const { hasYarn } = require("yarn-or-npm");
|
|
7
7
|
const { Octokit } = require("@octokit/rest");
|
|
@@ -66,7 +66,7 @@ const ghOrg = "ui5-community",
|
|
|
66
66
|
console.log("The default generator is outdated...");
|
|
67
67
|
// remove if the SHA marker doesn't exist => outdated!
|
|
68
68
|
showBusy(" Removing old default templates");
|
|
69
|
-
await
|
|
69
|
+
await rm(generatorPath, { recursive: true });
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -102,7 +102,7 @@ const ghOrg = "ui5-community",
|
|
|
102
102
|
console.log("Installing the plugin dependencies...");
|
|
103
103
|
showBusy(" Preparing the default templates");
|
|
104
104
|
await new Promise(function (resolve, reject) {
|
|
105
|
-
spawn((hasYarn() ? "yarn" : "npm"), ["install", "--no-progress"], {
|
|
105
|
+
spawn((hasYarn() ? "yarn" : "npm"), ["install", "--no-progress", "--ignore-engines"], {
|
|
106
106
|
stdio: "inherit",
|
|
107
107
|
cwd: generatorPath,
|
|
108
108
|
env: {
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-easy-ui5",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Generator for UI5-based project",
|
|
5
5
|
"main": "generators/app/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"generators"
|
|
8
8
|
],
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=14.0.0"
|
|
11
|
+
},
|
|
9
12
|
"scripts": {
|
|
10
13
|
"test": "mocha",
|
|
11
14
|
"postinstall": "node generators/app/postinstall",
|