@airfleet/generator-init 0.32.0 → 0.34.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.
@@ -114,6 +114,19 @@ export default class extends Generator {
114
114
  choices: ["No", "Frontend", "Admin", "Both"],
115
115
  default: "No",
116
116
  },
117
+ {
118
+ type: "list",
119
+ name: "license",
120
+ message: "License",
121
+ choices: ["essential", "premium", "support"],
122
+ default: "essential",
123
+ },
124
+ {
125
+ type: "confirm",
126
+ name: "visible",
127
+ message: "Make the plugin visible in Plugin Manager?",
128
+ default: true,
129
+ },
117
130
  ];
118
131
 
119
132
  this.answers = await this.prompt(prompts);
@@ -233,6 +246,16 @@ export default class extends Generator {
233
246
  destination: ".vscode/airfleet.code-snippets",
234
247
  isEnabled: true,
235
248
  },
249
+ {
250
+ template: ".airfleet-license.ejs",
251
+ destination: ".airfleet-license",
252
+ isEnabled: true,
253
+ },
254
+ {
255
+ template: ".airfleet-visible.ejs",
256
+ destination: ".airfleet-visible",
257
+ isEnabled: true,
258
+ },
236
259
  ];
237
260
 
238
261
  copyTemplates(this, templates, this.data);
@@ -0,0 +1 @@
1
+ <%= answers.license %>
@@ -0,0 +1 @@
1
+ <%= answers.visible %>
@@ -10,6 +10,8 @@
10
10
  **/node_modules/**
11
11
  **/*.scss
12
12
  **/.airfleet-release
13
+ **/.airfleet-license
14
+ **/.airfleet-visible
13
15
  **/.deployignore
14
16
  **/.editorconfig
15
17
  .editorconfig
@@ -11,6 +11,10 @@
11
11
  **/*.scss
12
12
  **/.airfleet-release
13
13
  .airfleet-release
14
+ **/.airfleet-license
15
+ .airfleet-license
16
+ **/.airfleet-visible
17
+ .airfleet-visible
14
18
  **/.deployignore
15
19
  **/.editorconfig
16
20
  .editorconfig
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airfleet/generator-init",
3
3
  "description": "A Yeoman generator to scaffold common Airfleet features",
4
- "version": "0.32.0",
4
+ "version": "0.34.0",
5
5
  "scripts": {},
6
6
  "publishConfig": {
7
7
  "access": "public"