generator-easy-ui5 3.0.1 → 3.1.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/README.md +5 -5
- package/generators/app/index.js +28 -0
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[![NPM version][npm-image]][npm-url]
|
|
4
4
|
[![Build Status][test-image]][test-url]
|
|
5
|
-
[![Dependency Status][
|
|
5
|
+
[![Dependency Status][librariesio-image]][repo-url]
|
|
6
6
|
[![License Status][license-image]][license-url]
|
|
7
7
|
[![REUSE status][reuse-image]][reuse-url]
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ The purpose of this generator is to guide you on your first steps with [SAPUI5](
|
|
|
18
18
|
|
|
19
19
|
- Get [Node.js](https://nodejs.org/en/download/) (**version 12 or higher** ⚠️)
|
|
20
20
|
|
|
21
|
-
## Installation
|
|
21
|
+
## Download and Installation
|
|
22
22
|
|
|
23
23
|
1. Install the generator
|
|
24
24
|
```sh
|
|
@@ -90,7 +90,7 @@ Run the following command to see all subgenerators of a given plugin
|
|
|
90
90
|
yo easy-ui5 [project|library] <sub-generator-id>
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
##
|
|
93
|
+
## How to obtain support
|
|
94
94
|
|
|
95
95
|
Please use the GitHub bug tracking system to post questions, bug reports or to create pull requests.
|
|
96
96
|
|
|
@@ -104,8 +104,8 @@ Please follow our instructions if you would like to [contribute](https://github.
|
|
|
104
104
|
[npm-url]: https://www.npmjs.com/package/generator-easy-ui5
|
|
105
105
|
[test-image]: https://github.com/SAP/generator-easy-ui5/actions/workflows/main.yml/badge.svg
|
|
106
106
|
[test-url]: https://github.com/SAP/generator-easy-ui5/actions/workflows/main.yml
|
|
107
|
-
[
|
|
108
|
-
[
|
|
107
|
+
[librariesio-image]: https://img.shields.io/librariesio/github/SAP/generator-easy-ui5
|
|
108
|
+
[repo-url]: https://github.com/SAP/generator-easy-ui5
|
|
109
109
|
[license-image]: https://img.shields.io/npm/l/generator-easy-ui5.svg
|
|
110
110
|
[license-url]: https://github.com/SAP/generator-easy-ui5/blob/master/LICENSE
|
|
111
111
|
[reuse-image]: https://api.reuse.software/badge/github.com/SAP/generator-easy-ui5/
|
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,29 @@ 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
|
+
const home = __dirname.slice(0, -14)
|
|
107
|
+
|
|
108
|
+
const components = {
|
|
109
|
+
'Node.js': process.version,
|
|
110
|
+
'home': home,
|
|
111
|
+
"yeoman-environment": yeoman.version
|
|
112
|
+
};
|
|
113
|
+
glob.sync(path.join(home, "plugin-generators/*/package.json")).forEach(function (plugin) {
|
|
114
|
+
const name = plugin.match(/plugin-generators\/(.+)\/package\.json/)[1];
|
|
115
|
+
const lib = require(plugin);
|
|
116
|
+
components[name] = lib.version;
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
const log = this.log;
|
|
120
|
+
return Object.keys(components).forEach(function (component) {
|
|
121
|
+
log(`${chalk.green(component)}: ${components[component]}`);
|
|
122
|
+
})
|
|
123
|
+
}
|
|
124
|
+
|
|
97
125
|
this.log(yosay(`Welcome to the ${chalk.red("easy-ui5")} generator!`));
|
|
98
126
|
|
|
99
127
|
// 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.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Generator for UI5-based project",
|
|
5
5
|
"main": "generators/app/index.js",
|
|
6
6
|
"files": [
|
|
@@ -36,20 +36,21 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/SAP/generator-easy-ui5#readme",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@octokit/rest": "^18.
|
|
40
|
-
"adm-zip": "^0.5.
|
|
41
|
-
"chalk": "^4.1.
|
|
39
|
+
"@octokit/rest": "^18.12.0",
|
|
40
|
+
"adm-zip": "^0.5.9",
|
|
41
|
+
"chalk": "^4.1.2",
|
|
42
42
|
"colors": "^1.4.0",
|
|
43
|
-
"
|
|
43
|
+
"glob": "^7.2.0",
|
|
44
|
+
"mocha": "^9.1.3",
|
|
44
45
|
"rimraf": "^3.0.2",
|
|
45
46
|
"yarn-or-npm": "^3.0.1",
|
|
46
47
|
"yeoman-assert": "^3.1.1",
|
|
47
|
-
"yeoman-environment": "^3.
|
|
48
|
-
"yeoman-generator": "^4.
|
|
49
|
-
"yeoman-test": "^
|
|
48
|
+
"yeoman-environment": "^3.8.0",
|
|
49
|
+
"yeoman-generator": "^5.4.2",
|
|
50
|
+
"yeoman-test": "^6.2.0",
|
|
50
51
|
"yosay": "^2.0.2"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"prettier": "2.
|
|
54
|
+
"prettier": "2.4.1"
|
|
54
55
|
}
|
|
55
56
|
}
|