@airfleet/generator-init 0.23.4 → 0.24.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.
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
|
5
5
|
"This file is @generated automatically"
|
|
6
6
|
],
|
|
7
|
-
"content-hash": "
|
|
7
|
+
"content-hash": "1787fbb0ba310171876319b249557892",
|
|
8
8
|
"packages": [
|
|
9
9
|
{
|
|
10
10
|
"name": "airfleet/wordpress-framework",
|
|
11
|
-
"version": "1.
|
|
11
|
+
"version": "1.2.1",
|
|
12
12
|
"source": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "https://github.com/airfleet/airfleet-wordpress-framework-php.git",
|
|
15
|
-
"reference": "
|
|
15
|
+
"reference": "f226882d99d9fa55de2801bbc81fab02fd346c22"
|
|
16
16
|
},
|
|
17
17
|
"dist": {
|
|
18
18
|
"type": "zip",
|
|
19
|
-
"url": "https://api.github.com/repos/airfleet/airfleet-wordpress-framework-php/zipball/
|
|
20
|
-
"reference": "
|
|
19
|
+
"url": "https://api.github.com/repos/airfleet/airfleet-wordpress-framework-php/zipball/f226882d99d9fa55de2801bbc81fab02fd346c22",
|
|
20
|
+
"reference": "f226882d99d9fa55de2801bbc81fab02fd346c22",
|
|
21
21
|
"shasum": ""
|
|
22
22
|
},
|
|
23
23
|
"require": {
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"description": "Airfleet framework for WordPress",
|
|
41
41
|
"support": {
|
|
42
42
|
"issues": "https://github.com/airfleet/airfleet-wordpress-framework-php/issues",
|
|
43
|
-
"source": "https://github.com/airfleet/airfleet-wordpress-framework-php/tree/1.
|
|
43
|
+
"source": "https://github.com/airfleet/airfleet-wordpress-framework-php/tree/1.2.1"
|
|
44
44
|
},
|
|
45
|
-
"time": "
|
|
45
|
+
"time": "2024-02-08T16:31:31+00:00"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"name": "jawira/case-converter",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"prefer-lowest": false,
|
|
121
121
|
"platform": [],
|
|
122
122
|
"platform-dev": [],
|
|
123
|
-
"plugin-api-version": "2.
|
|
123
|
+
"plugin-api-version": "2.6.0"
|
|
124
124
|
}
|
|
@@ -33,9 +33,12 @@ export default class {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
_acfTemplate() {
|
|
36
|
+
const isNaturalName = this.generator.viewType.slug === "blocks" || this.generator.viewType.slug === "components" || this.generator.viewType.slug === "custom-templates";
|
|
37
|
+
const filename = isNaturalName ? `${this.generator.name.slug}.acf-group.json` : `${this.generator.acf.key}.json`;
|
|
38
|
+
|
|
36
39
|
return {
|
|
37
40
|
template: `${this.generator.viewType.slug}/${this.generator.viewType.slug}-group.json.ejs`,
|
|
38
|
-
destination: `${this.generator.viewFolder}/${
|
|
41
|
+
destination: `${this.generator.viewFolder}/${filename}`,
|
|
39
42
|
isEnabled: this.generator.answers.createCustomFields,
|
|
40
43
|
};
|
|
41
44
|
}
|