@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.
- package/generators/plugin/index.js +23 -0
- package/generators/plugin/templates/.airfleet-license.ejs +1 -0
- package/generators/plugin/templates/.airfleet-visible.ejs +1 -0
- package/generators/project/templates/.deployignore +2 -0
- package/generators/project-plugin/templates/.deployignore +4 -0
- package/package.json +1 -1
|
@@ -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 %>
|