@airfleet/generator-init 0.34.0 → 0.36.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.
@@ -60,9 +60,7 @@
60
60
  "body": [
61
61
  "export class ${TM_FILENAME_BASE/([^.]*)(\\..+)*$/${1:/pascalcase}/} {",
62
62
  " initialize() {",
63
- " const { domReady } = window._airfleet.elements.core;",
64
- "",
65
- " domReady(() => {",
63
+ " _af.ready(() => {",
66
64
  " $1",
67
65
  " });",
68
66
  " }",
@@ -183,4 +181,4 @@
183
181
  ],
184
182
  "description": "Bootstrap a Blade template for a partial"
185
183
  }
186
- }
184
+ }
@@ -60,9 +60,7 @@
60
60
  "body": [
61
61
  "export class ${TM_FILENAME_BASE/([^.]*)(\\..+)*$/${1:/pascalcase}/} {",
62
62
  " initialize() {",
63
- " const { domReady } = window._airfleet.elements.core;",
64
- "",
65
- " domReady(() => {",
63
+ " _af.ready(() => {",
66
64
  " $1",
67
65
  " });",
68
66
  " }",
@@ -170,4 +168,4 @@
170
168
  ],
171
169
  "description": "Bootstrap a Blade template for a partial"
172
170
  }
173
- }
171
+ }
@@ -4,11 +4,6 @@
4
4
 
5
5
  <%= answers.description %>
6
6
 
7
- ## Environments
8
-
9
- - Production: <%= answers.productionUrl %>
10
- - Staging: <%= answers.stagingUrl %>
11
-
12
7
  ## Getting Started
13
8
 
14
9
  Navigate to the theme folder (`wp-content/themes/airfleet-lightyear`) and run:
@@ -18,10 +13,6 @@ composer install
18
13
  npm install
19
14
  ```
20
15
 
21
- ## Documentation
22
-
23
- - [Theme Documentation](https://www.notion.so/codersclan/Airfleet-Lightyear-257b3055301e4899982364f4e8b6a229).
24
-
25
16
  ## License
26
17
 
27
18
  © [Airfleet](https://www.airfleet.co/)
@@ -60,9 +60,7 @@
60
60
  "body": [
61
61
  "export class ${TM_FILENAME_BASE/([^.]*)(\\..+)*$/${1:/pascalcase}/} {",
62
62
  " initialize() {",
63
- " const { domReady } = window._airfleet.elements.core;",
64
- "",
65
- " domReady(() => {",
63
+ " _af.ready(() => {",
66
64
  " $1",
67
65
  " });",
68
66
  " }",
@@ -183,4 +181,4 @@
183
181
  ],
184
182
  "description": "Bootstrap a Blade template for a partial"
185
183
  }
186
- }
184
+ }
@@ -60,9 +60,7 @@
60
60
  "body": [
61
61
  "export class ${TM_FILENAME_BASE/([^.]*)(\\..+)*$/${1:/pascalcase}/} {",
62
62
  " initialize() {",
63
- " const { domReady } = window._airfleet.elements.core;",
64
- "",
65
- " domReady(() => {",
63
+ " _af.ready(() => {",
66
64
  " $1",
67
65
  " });",
68
66
  " }",
@@ -183,4 +181,4 @@
183
181
  ],
184
182
  "description": "Bootstrap a Blade template for a partial"
185
183
  }
186
- }
184
+ }
@@ -1,12 +1,11 @@
1
1
  <%_ if (importStyles) { _%>
2
2
  import './<%= stylesheet %>';
3
3
 
4
- <% } _%>
4
+ <%
5
+ } _%>
5
6
  export class <%= name.pascal %> {
6
7
  initialize() {
7
- const { domReady } = window._airfleet.elements.core;
8
-
9
- domReady(() => {
8
+ _af.ready(() => {
10
9
  // TODO
11
10
  });
12
11
  }
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.34.0",
4
+ "version": "0.36.0",
5
5
  "scripts": {},
6
6
  "publishConfig": {
7
7
  "access": "public"