@airfleet/generator-init 0.10.1 → 0.12.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 +7 -1
- package/generators/plugin/templates/.husky/gitignore +1 -0
- package/generators/plugin/templates/assets/frontend/scripts/critical.entry.js +1 -0
- package/generators/plugin/templates/assets/frontend/styles/critical.scss +0 -0
- package/generators/plugin/templates/inc/Setup.php.ejs +1 -0
- package/generators/plugin/templates/package.json.ejs +1 -1
- package/generators/plugin/templates/plugin-name.php.ejs +1 -1
- package/package.json +1 -1
|
@@ -109,7 +109,6 @@ export default class extends Generator {
|
|
|
109
109
|
|
|
110
110
|
writing() {
|
|
111
111
|
const files = [
|
|
112
|
-
".husky/.gitignore",
|
|
113
112
|
".husky/pre-commit",
|
|
114
113
|
".vscode/settings.json",
|
|
115
114
|
"acf-json/.gitkeep",
|
|
@@ -117,7 +116,9 @@ export default class extends Generator {
|
|
|
117
116
|
"assets/admin/styles/admin.scss",
|
|
118
117
|
"assets/frontend/fonts/.gitkeep",
|
|
119
118
|
"assets/frontend/images/.gitkeep",
|
|
119
|
+
"assets/frontend/scripts/critical.entry.js",
|
|
120
120
|
"assets/frontend/scripts/index.entry.js",
|
|
121
|
+
"assets/frontend/styles/critical.scss",
|
|
121
122
|
"assets/frontend/styles/index.scss",
|
|
122
123
|
"inc/Setup.php.ejs",
|
|
123
124
|
".airfleet-release",
|
|
@@ -142,6 +143,11 @@ export default class extends Generator {
|
|
|
142
143
|
destination: `.gitignore`,
|
|
143
144
|
isEnabled: true,
|
|
144
145
|
},
|
|
146
|
+
{
|
|
147
|
+
template: ".husky/gitignore",
|
|
148
|
+
destination: `.husky/.gitignore`,
|
|
149
|
+
isEnabled: true,
|
|
150
|
+
},
|
|
145
151
|
{
|
|
146
152
|
template: "plugin-name.php.ejs",
|
|
147
153
|
destination: `${this.name.slug}.php`,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
_
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../styles/critical.scss";
|
|
File without changes
|
|
@@ -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
|
|
44
|
+
* ! Edit the plugin class in folder inc/.
|
|
45
45
|
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
46
46
|
*/
|