generator-easy-ui5 3.0.3 → 3.1.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/generators/app/index.js +27 -0
- package/package.json +2 -1
package/generators/app/index.js
CHANGED
|
@@ -36,6 +36,11 @@ const generatorOptions = {
|
|
|
36
36
|
type: Boolean,
|
|
37
37
|
description: `Skip the update of the plugin generators`,
|
|
38
38
|
},
|
|
39
|
+
plugins: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
alias: "p",
|
|
42
|
+
description: `Get detailed version information`,
|
|
43
|
+
}
|
|
39
44
|
};
|
|
40
45
|
|
|
41
46
|
const generatorArgs = {
|
|
@@ -94,6 +99,28 @@ module.exports = class extends Generator {
|
|
|
94
99
|
}
|
|
95
100
|
|
|
96
101
|
async prompting() {
|
|
102
|
+
|
|
103
|
+
if (this.options.plugins) {
|
|
104
|
+
const glob = require("glob");
|
|
105
|
+
const yeoman = require("yeoman-environment/package.json");
|
|
106
|
+
|
|
107
|
+
const components = {
|
|
108
|
+
'Node.js': process.version,
|
|
109
|
+
'home': __dirname.slice(0, -4),
|
|
110
|
+
"yeoman-environment": yeoman.version
|
|
111
|
+
};
|
|
112
|
+
glob.sync("./plugin-generators/*/package.json").forEach(function (plugin) {
|
|
113
|
+
const name = plugin.replace("./plugin-generators/", "").replace("/package.json", "");
|
|
114
|
+
const lib = require(path.join("../../", plugin));
|
|
115
|
+
components[name] = lib.version;
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
const log = this.log;
|
|
119
|
+
return Object.keys(components).forEach(function (component) {
|
|
120
|
+
log(`${chalk.green(component)}: ${components[component]}`);
|
|
121
|
+
})
|
|
122
|
+
}
|
|
123
|
+
|
|
97
124
|
this.log(yosay(`Welcome to the ${chalk.red("easy-ui5")} generator!`));
|
|
98
125
|
|
|
99
126
|
// create the octokit client to retrieve the generators from GH org
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-easy-ui5",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Generator for UI5-based project",
|
|
5
5
|
"main": "generators/app/index.js",
|
|
6
6
|
"files": [
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"adm-zip": "^0.5.9",
|
|
41
41
|
"chalk": "^4.1.2",
|
|
42
42
|
"colors": "^1.4.0",
|
|
43
|
+
"glob": "^7.2.0",
|
|
43
44
|
"mocha": "^9.1.3",
|
|
44
45
|
"rimraf": "^3.0.2",
|
|
45
46
|
"yarn-or-npm": "^3.0.1",
|