@airfleet/generator-init 0.23.3 → 0.23.4

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.
@@ -279,12 +279,16 @@ export default class {
279
279
  return {
280
280
  type: "checkbox",
281
281
  name: "styles",
282
- message: "Which styles to create?",
282
+ message: "Which stylesheets to create?",
283
283
  choices: [
284
+ {
285
+ name: "Default, no-suffix (applies to frontend and editor)",
286
+ value: "default",
287
+ checked: true,
288
+ },
284
289
  {
285
290
  name: "Frontend",
286
291
  value: "frontend",
287
- checked: true,
288
292
  },
289
293
  {
290
294
  name: "Critical",
@@ -307,12 +311,16 @@ export default class {
307
311
  return {
308
312
  type: "checkbox",
309
313
  name: "scripts",
310
- message: "Which scripts to create?",
314
+ message: "Which script files to create?",
311
315
  choices: [
316
+ {
317
+ name: "Default, no-suffix (applies to frontend and editor)",
318
+ value: "default",
319
+ checked: true,
320
+ },
312
321
  {
313
322
  name: "Frontend",
314
323
  value: "frontend",
315
- checked: true,
316
324
  },
317
325
  {
318
326
  name: "Critical",
@@ -75,6 +75,11 @@ export default class {
75
75
  {
76
76
  template,
77
77
  destination: `${this.generator.viewFolder}/${this.generator.name.slug}.${extension}`,
78
+ isEnabled: this._styleEnabled("default"),
79
+ },
80
+ {
81
+ template,
82
+ destination: `${this.generator.viewFolder}/${this.generator.name.slug}.frontend.${extension}`,
78
83
  isEnabled: this._styleEnabled("frontend"),
79
84
  },
80
85
  {
@@ -96,10 +101,10 @@ export default class {
96
101
  }
97
102
 
98
103
  _scriptsTemplates() {
99
- const screens = ["frontend", "critical", "editor", "admin"];
104
+ const screens = ["default", "frontend", "critical", "editor", "admin"];
100
105
 
101
106
  return screens.map((screen) => {
102
- const suffix = screen === "frontend" ? "" : `.${screen}`;
107
+ const suffix = screen === "default" ? "" : `.${screen}`;
103
108
  const extension = this.generator.answers.source === "starter-theme" ? "js" : "entry.js";
104
109
 
105
110
  return {
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.23.3",
4
+ "version": "0.23.4",
5
5
  "scripts": {},
6
6
  "publishConfig": {
7
7
  "access": "public"