@airfleet/generator-init 0.10.1 → 0.11.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.
@@ -117,7 +117,9 @@ export default class extends Generator {
117
117
  "assets/admin/styles/admin.scss",
118
118
  "assets/frontend/fonts/.gitkeep",
119
119
  "assets/frontend/images/.gitkeep",
120
+ "assets/frontend/scripts/critical.entry.js",
120
121
  "assets/frontend/scripts/index.entry.js",
122
+ "assets/frontend/styles/critical.scss",
121
123
  "assets/frontend/styles/index.scss",
122
124
  "inc/Setup.php.ejs",
123
125
  ".airfleet-release",
@@ -142,6 +144,11 @@ export default class extends Generator {
142
144
  destination: `.gitignore`,
143
145
  isEnabled: true,
144
146
  },
147
+ {
148
+ template: ".husky/gitignore",
149
+ destination: `.husky/.gitignore`,
150
+ isEnabled: true,
151
+ },
145
152
  {
146
153
  template: "plugin-name.php.ejs",
147
154
  destination: `${this.name.slug}.php`,
@@ -0,0 +1 @@
1
+ import "../styles/critical.scss";
@@ -37,6 +37,7 @@ class Setup {
37
37
  );
38
38
  $plugin->setup_acf_json();
39
39
  $plugin->enqueue();
40
+ $plugin->enqueue_critical();
40
41
  $plugin->enqueue_admin();
41
42
  <%_ if (answers.pluginCreateOptions) { _%>
42
43
  $plugin->add_options_page();
@@ -41,6 +41,6 @@ $<%= name.snake %>->initialize();
41
41
  /**
42
42
  * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
43
43
  * ! Do not make changes to this file.
44
- * ! Edit the plugin class in folder src/.
44
+ * ! Edit the plugin class in folder inc/.
45
45
  * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
46
46
  */
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.10.1",
4
+ "version": "0.11.0",
5
5
  "scripts": {},
6
6
  "publishConfig": {
7
7
  "access": "public"