@jungvonmatt/cssg-plugin-hugo 1.12.3 → 1.14.2

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/.eslintrc.cjs CHANGED
@@ -1,10 +1,13 @@
1
1
  module.exports = {
2
2
  root: true,
3
3
  plugins: ['prettier'],
4
- extends: ["xo-space", 'plugin:prettier/recommended'],
4
+ extends: ['xo-space', 'plugin:prettier/recommended'],
5
5
  ignorePatterns: ['**/*.cjs', 'src/**/*.test.js', 'src/__test__/*'],
6
6
  env: {
7
7
  node: true,
8
8
  jest: true,
9
- }
9
+ },
10
+ rules: {
11
+ '@typescript-eslint/prefer-nullish-coalescing': 0,
12
+ },
10
13
  };
@@ -1,19 +1,4 @@
1
- @jungvonmatt/cssg-plugin-hugo:lint: cache hit, replaying output 5a9bd0f05e963265
2
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config shrinkwrap Use the --package-lock setting instead.
3
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config cache-max This option has been deprecated in favor of `--prefer-online`
4
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config optional Use `--omit=optional` to exclude optional dependencies, or
5
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config `--include=optional` to include them.
6
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config
7
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config Default value does install optional deps unless otherwise omitted.
8
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config sso-poll-frequency The --auth-type method of SSO/SAML/OAuth will be removed in a future
9
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config version of npm in favor of web-based login.
10
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config sso-type The --auth-type method of SSO/SAML/OAuth will be removed in a future
11
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config version of npm in favor of web-based login.
12
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config cache-min This option has been deprecated in favor of `--prefer-offline`.
13
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
14
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config location in the cache, and they are managed by
15
- @jungvonmatt/cssg-plugin-hugo:lint: npm WARN config [`cacache`](http://npm.im/cacache).
16
- @jungvonmatt/cssg-plugin-hugo:lint: 
17
- @jungvonmatt/cssg-plugin-hugo:lint: > @jungvonmatt/cssg-plugin-hugo@1.12.3 lint
18
- @jungvonmatt/cssg-plugin-hugo:lint: > eslint --color index.js --fix
19
- @jungvonmatt/cssg-plugin-hugo:lint: 
1
+
2
+ > @jungvonmatt/cssg-plugin-hugo@1.14.2 lint
3
+ > eslint --color index.js --fix
4
+
@@ -1,14 +1,27 @@
1
- @jungvonmatt/cssg-plugin-hugo:test: cache hit, replaying output bce9c6864b1d8624
2
- @jungvonmatt/cssg-plugin-hugo:test: 
3
- @jungvonmatt/cssg-plugin-hugo:test: > @jungvonmatt/cssg-plugin-hugo@1.11.3 test
4
- @jungvonmatt/cssg-plugin-hugo:test: > jest
5
- @jungvonmatt/cssg-plugin-hugo:test: 
6
- @jungvonmatt/cssg-plugin-hugo:test: PASS cssg-plugin-hugo ./index.test.js
7
- @jungvonmatt/cssg-plugin-hugo:test:  cssg-plugin-hugo
8
- @jungvonmatt/cssg-plugin-hugo:test:  should work (2 ms)
9
- @jungvonmatt/cssg-plugin-hugo:test: 
10
- @jungvonmatt/cssg-plugin-hugo:test: Test Suites: 1 passed, 1 total
11
- @jungvonmatt/cssg-plugin-hugo:test: Tests: 1 passed, 1 total
12
- @jungvonmatt/cssg-plugin-hugo:test: Snapshots: 0 total
13
- @jungvonmatt/cssg-plugin-hugo:test: Time: 5.071 s
14
- @jungvonmatt/cssg-plugin-hugo:test: Ran all test suites.
1
+
2
+ 
3
+ > @jungvonmatt/cssg-plugin-hugo@1.14.0 test
4
+ > jest
5
+
6
+ Determining test suites to run...
7
+
8
+  RUNS   cssg-plugin-hugo  ./index.test.js
9
+
10
+  RUNS   cssg-plugin-hugo  ./index.test.js
11
+
12
+
13
+  RUNS   cssg-plugin-hugo  ./index.test.js
14
+
15
+
16
+  RUNS   cssg-plugin-hugo  ./index.test.js
17
+
18
+
19
+  RUNS   cssg-plugin-hugo  ./index.test.js
20
+
21
+
22
+  RUNS   cssg-plugin-hugo  ./index.test.js
23
+
24
+ Tests: 1 passed, 1 total
25
+ Snapshots: 0 total
26
+ Time: 1.183 s
27
+ Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -3,403 +3,220 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [1.12.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.12.2...v1.12.3) (2023-03-06)
6
+ ## [1.14.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.14.1...v1.14.2) (2024-06-01)
7
7
 
8
8
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
9
9
 
10
+ # [1.14.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.13.0...v1.14.0) (2024-02-03)
10
11
 
12
+ **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
11
13
 
14
+ ## [1.12.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.12.2...v1.12.3) (2023-03-06)
12
15
 
16
+ **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
13
17
 
14
18
  # [1.12.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.11.3...v1.12.0) (2023-03-06)
15
19
 
16
20
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
17
21
 
18
-
19
-
20
-
21
-
22
22
  ## [1.11.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.11.2...v1.11.3) (2023-02-16)
23
23
 
24
24
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
25
25
 
26
-
27
-
28
-
29
-
30
26
  ## [1.11.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.11.1...v1.11.2) (2023-02-16)
31
27
 
32
28
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
33
29
 
34
-
35
-
36
-
37
-
38
30
  ## [1.11.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.11.0...v1.11.1) (2023-02-14)
39
31
 
40
32
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
41
33
 
42
-
43
-
44
-
45
-
46
34
  # [1.11.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.10.0...v1.11.0) (2022-09-19)
47
35
 
48
36
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
49
37
 
50
-
51
-
52
-
53
-
54
38
  # [1.10.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.9.0...v1.10.0) (2022-09-15)
55
39
 
56
40
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
57
41
 
58
-
59
-
60
-
61
-
62
42
  # [1.9.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.8.2...v1.9.0) (2022-06-30)
63
43
 
64
-
65
44
  ### Features
66
45
 
67
- * **watch:** serialize watch state on subsequent runs ([#49](https://github.com/jungvonmatt/contentful-ssg/issues/49)) ([48ec401](https://github.com/jungvonmatt/contentful-ssg/commit/48ec4010733a3d46ce34a3703198d635b8f432d0))
68
-
69
-
70
-
71
-
46
+ - **watch:** serialize watch state on subsequent runs ([#49](https://github.com/jungvonmatt/contentful-ssg/issues/49)) ([48ec401](https://github.com/jungvonmatt/contentful-ssg/commit/48ec4010733a3d46ce34a3703198d635b8f432d0))
72
47
 
73
48
  # [1.8.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.4...v1.8.0) (2022-06-21)
74
49
 
75
50
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
76
51
 
77
-
78
-
79
-
80
-
81
52
  # [1.8.0-alpha.6](https://github.com/jungvonmatt/contentful-ssg/compare/v1.8.0-alpha.5...v1.8.0-alpha.6) (2022-06-07)
82
53
 
83
54
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
84
55
 
85
-
86
-
87
-
88
-
89
56
  # [1.8.0-alpha.5](https://github.com/jungvonmatt/contentful-ssg/compare/v1.8.0-alpha.4...v1.8.0-alpha.5) (2022-06-02)
90
57
 
91
58
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
92
59
 
93
-
94
-
95
-
96
-
97
60
  # [1.8.0-alpha.4](https://github.com/jungvonmatt/contentful-ssg/compare/v1.8.0-alpha.2...v1.8.0-alpha.4) (2022-06-02)
98
61
 
99
-
100
62
  ### Bug Fixes
101
63
 
102
- * **sonar:** fix coverage stats ([a1f2538](https://github.com/jungvonmatt/contentful-ssg/commit/a1f2538b892029f36ab4af57e9ca311b12320b58))
103
-
104
-
105
-
106
-
64
+ - **sonar:** fix coverage stats ([a1f2538](https://github.com/jungvonmatt/contentful-ssg/commit/a1f2538b892029f36ab4af57e9ca311b12320b58))
107
65
 
108
66
  # [1.8.0-alpha.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.8.0-alpha.2...v1.8.0-alpha.3) (2022-06-02)
109
67
 
110
-
111
68
  ### Bug Fixes
112
69
 
113
- * **sonar:** fix coverage stats ([a1f2538](https://github.com/jungvonmatt/contentful-ssg/commit/a1f2538b892029f36ab4af57e9ca311b12320b58))
114
-
115
-
116
-
117
-
70
+ - **sonar:** fix coverage stats ([a1f2538](https://github.com/jungvonmatt/contentful-ssg/commit/a1f2538b892029f36ab4af57e9ca311b12320b58))
118
71
 
119
72
  # [1.8.0-alpha.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.8.0-alpha.1...v1.8.0-alpha.2) (2022-05-25)
120
73
 
121
74
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
122
75
 
123
-
124
-
125
-
126
-
127
76
  # [1.8.0-alpha.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.8.0-alpha.0...v1.8.0-alpha.1) (2022-05-24)
128
77
 
129
78
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
130
79
 
131
-
132
-
133
-
134
-
135
80
  # [1.8.0-alpha.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.4...v1.8.0-alpha.0) (2022-05-24)
136
81
 
137
82
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
138
83
 
139
-
140
-
141
-
142
-
143
84
  ## [1.7.4](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.3...v1.7.4) (2022-05-18)
144
85
 
145
-
146
86
  ### Bug Fixes
147
87
 
148
- * **hugo-menu:** handle pagerefs for link content types ([#45](https://github.com/jungvonmatt/contentful-ssg/issues/45)) ([9023115](https://github.com/jungvonmatt/contentful-ssg/commit/902311525fb3cb1dcba9f32efa2f26744feff50a))
149
-
150
-
151
-
152
-
88
+ - **hugo-menu:** handle pagerefs for link content types ([#45](https://github.com/jungvonmatt/contentful-ssg/issues/45)) ([9023115](https://github.com/jungvonmatt/contentful-ssg/commit/902311525fb3cb1dcba9f32efa2f26744feff50a))
153
89
 
154
90
  ## [1.7.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.2...v1.7.3) (2022-05-02)
155
91
 
156
92
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
157
93
 
158
-
159
-
160
-
161
-
162
94
  ## [1.7.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.1...v1.7.2) (2022-04-28)
163
95
 
164
96
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
165
97
 
166
-
167
-
168
-
169
-
170
98
  ## [1.7.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.0...v1.7.1) (2022-04-27)
171
99
 
172
100
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
173
101
 
174
-
175
-
176
-
177
-
178
102
  # [1.7.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.6.1...v1.7.0) (2022-04-26)
179
103
 
180
104
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
181
105
 
182
-
183
-
184
-
185
-
186
106
  ## [1.6.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.6.0...v1.6.1) (2022-04-05)
187
107
 
188
108
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
189
109
 
190
-
191
-
192
-
193
-
194
110
  ## [1.5.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.5.1...v1.5.2) (2022-03-23)
195
111
 
196
-
197
112
  ### Bug Fixes
198
113
 
199
- * **menu:** use submenu as default value for fieldIdMenu ([e7a8b55](https://github.com/jungvonmatt/contentful-ssg/commit/e7a8b55a61cb3d5284561b318d0bf5b2a92a835e))
200
-
201
-
202
-
203
-
114
+ - **menu:** use submenu as default value for fieldIdMenu ([e7a8b55](https://github.com/jungvonmatt/contentful-ssg/commit/e7a8b55a61cb3d5284561b318d0bf5b2a92a835e))
204
115
 
205
116
  ## [1.5.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.5.0...v1.5.1) (2022-02-23)
206
117
 
207
-
208
118
  ### Bug Fixes
209
119
 
210
- * **hugo-menu:** apply pageRef to child entries, too ([69c74a8](https://github.com/jungvonmatt/contentful-ssg/commit/69c74a8eef8fe6a98d1f17710818c2a87093873c))
211
-
212
-
213
-
214
-
120
+ - **hugo-menu:** apply pageRef to child entries, too ([69c74a8](https://github.com/jungvonmatt/contentful-ssg/commit/69c74a8eef8fe6a98d1f17710818c2a87093873c))
215
121
 
216
122
  # [1.5.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.12...v1.5.0) (2022-02-23)
217
123
 
218
-
219
124
  ### Features
220
125
 
221
- * **hugo-menu:** adds pageRef to menu entries ([6fe89a9](https://github.com/jungvonmatt/contentful-ssg/commit/6fe89a9c1d36a617e1ddb3cd5f1d27b96f4fab5f))
222
-
223
-
224
-
225
-
126
+ - **hugo-menu:** adds pageRef to menu entries ([6fe89a9](https://github.com/jungvonmatt/contentful-ssg/commit/6fe89a9c1d36a617e1ddb3cd5f1d27b96f4fab5f))
226
127
 
227
128
  ## [1.4.12](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.11...v1.4.12) (2022-02-23)
228
129
 
229
-
230
130
  ### Bug Fixes
231
131
 
232
- * fix syntax error ([53ac989](https://github.com/jungvonmatt/contentful-ssg/commit/53ac989b9ba92b5c8ccd8759c77b17cf6dcebd22))
233
-
234
-
235
-
236
-
132
+ - fix syntax error ([53ac989](https://github.com/jungvonmatt/contentful-ssg/commit/53ac989b9ba92b5c8ccd8759c77b17cf6dcebd22))
237
133
 
238
134
  ## [1.4.11](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.10...v1.4.11) (2022-02-23)
239
135
 
240
-
241
136
  ### Bug Fixes
242
137
 
243
- * **hugo-menu:** makes menu roots configurable ([ac10c2f](https://github.com/jungvonmatt/contentful-ssg/commit/ac10c2f73646016d3ac69fd96f8a2ebca2247043))
244
-
245
-
246
-
247
-
138
+ - **hugo-menu:** makes menu roots configurable ([ac10c2f](https://github.com/jungvonmatt/contentful-ssg/commit/ac10c2f73646016d3ac69fd96f8a2ebca2247043))
248
139
 
249
140
  ## [1.4.10](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.9...v1.4.10) (2022-02-22)
250
141
 
251
-
252
142
  ### Bug Fixes
253
143
 
254
- * **hugo-locales:** Lowercase ISO locale codes to work with hugo ([088cb0b](https://github.com/jungvonmatt/contentful-ssg/commit/088cb0b871e3d93fb75641a5c031e61011838cda))
255
-
256
-
257
-
258
-
144
+ - **hugo-locales:** Lowercase ISO locale codes to work with hugo ([088cb0b](https://github.com/jungvonmatt/contentful-ssg/commit/088cb0b871e3d93fb75641a5c031e61011838cda))
259
145
 
260
146
  ## [1.4.9](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.8...v1.4.9) (2022-02-11)
261
147
 
262
148
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
263
149
 
264
-
265
-
266
-
267
-
268
150
  ## [1.4.8](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.7...v1.4.8) (2022-02-09)
269
151
 
270
152
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
271
153
 
272
-
273
-
274
-
275
-
276
154
  ## [1.4.4](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.3...v1.4.4) (2022-01-24)
277
155
 
278
-
279
156
  ### Bug Fixes
280
157
 
281
- * 🐛 Fix menu sort ([589f341](https://github.com/jungvonmatt/contentful-ssg/commit/589f341ecedbad7fcaaae43b360fa06a73a404c6))
282
-
283
-
284
-
285
-
158
+ - 🐛 Fix menu sort ([589f341](https://github.com/jungvonmatt/contentful-ssg/commit/589f341ecedbad7fcaaae43b360fa06a73a404c6))
286
159
 
287
160
  ## [1.4.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.2...v1.4.3) (2022-01-24)
288
161
 
289
-
290
162
  ### Bug Fixes
291
163
 
292
- * 🐛 Don't deep merge settings ([298c15e](https://github.com/jungvonmatt/contentful-ssg/commit/298c15ed3c80dc222b42909db610c41e977a9110))
293
-
294
-
295
-
296
-
164
+ - 🐛 Don't deep merge settings ([298c15e](https://github.com/jungvonmatt/contentful-ssg/commit/298c15ed3c80dc222b42909db610c41e977a9110))
297
165
 
298
166
  # [1.4.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.3.2...v1.4.0) (2022-01-19)
299
167
 
300
168
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
301
169
 
302
-
303
-
304
-
305
-
306
170
  ## [1.3.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.3.1...v1.3.2) (2022-01-14)
307
171
 
308
172
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
309
173
 
310
-
311
-
312
-
313
-
314
174
  # [1.3.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.2.0...v1.3.0) (2022-01-10)
315
175
 
316
-
317
176
  ### Features
318
177
 
319
- * 🎸 Consider menu reference in page node when building menu ([42499a4](https://github.com/jungvonmatt/contentful-ssg/commit/42499a4efb2f25275d8ea4fb74f72461aa441ba0))
320
-
321
-
322
-
323
-
178
+ - 🎸 Consider menu reference in page node when building menu ([42499a4](https://github.com/jungvonmatt/contentful-ssg/commit/42499a4efb2f25275d8ea4fb74f72461aa441ba0))
324
179
 
325
180
  # [1.2.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.1.1...v1.2.0) (2021-12-21)
326
181
 
327
-
328
182
  ### Features
329
183
 
330
- * 🎸 Generates hugo's menu.toml ([27e95a3](https://github.com/jungvonmatt/contentful-ssg/commit/27e95a33452b1aa5158ee89070889383cee4b6c5))
331
-
332
-
333
-
334
-
184
+ - 🎸 Generates hugo's menu.toml ([27e95a3](https://github.com/jungvonmatt/contentful-ssg/commit/27e95a33452b1aa5158ee89070889383cee4b6c5))
335
185
 
336
186
  # [1.1.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.6...v1.1.0) (2021-12-02)
337
187
 
338
-
339
188
  ### Bug Fixes
340
189
 
341
- * 🐛 Adds <rootDir>/data to managed directories ([d67de2b](https://github.com/jungvonmatt/contentful-ssg/commit/d67de2b4a78771076e5fd1d4e7beec0c1fb65a7d))
342
-
343
-
344
-
345
-
190
+ - 🐛 Adds <rootDir>/data to managed directories ([d67de2b](https://github.com/jungvonmatt/contentful-ssg/commit/d67de2b4a78771076e5fd1d4e7beec0c1fb65a7d))
346
191
 
347
192
  ## [1.0.6](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.5...v1.0.6) (2021-12-02)
348
193
 
349
194
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
350
195
 
351
-
352
-
353
-
354
-
355
196
  ## [1.0.5](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.4...v1.0.5) (2021-11-30)
356
197
 
357
198
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
358
199
 
359
-
360
-
361
-
362
-
363
200
  ## [1.0.4](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.3...v1.0.4) (2021-11-29)
364
201
 
365
202
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
366
203
 
367
-
368
-
369
-
370
-
371
204
  ## [1.0.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.2...v1.0.3) (2021-11-29)
372
205
 
373
206
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
374
207
 
375
-
376
-
377
-
378
-
379
208
  ## [1.0.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.1...v1.0.2) (2021-11-29)
380
209
 
381
210
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
382
211
 
383
-
384
-
385
-
386
-
387
212
  ## [1.0.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.0...v1.0.1) (2021-11-25)
388
213
 
389
214
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
390
215
 
391
-
392
-
393
-
394
-
395
216
  # [1.0.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.0-alpha.0...v1.0.0) (2021-11-25)
396
217
 
397
218
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
398
219
 
399
-
400
-
401
-
402
-
403
220
  # [1.0.0-alpha.0](https://github.com/jungvonmatt/contentful-ssg/compare/v0.17.3...v1.0.0-alpha.0) (2021-11-25)
404
221
 
405
222
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
package/index.js CHANGED
@@ -52,15 +52,15 @@ export default (args) => {
52
52
  ([locale, contentfulData]) => {
53
53
  const entryMap = contentfulData?.entryMap ?? new Map();
54
54
  const settingsEntries = Array.from(entryMap.values()).filter(
55
- (entry) => (entry?.sys?.contentType?.sys?.id ?? 'unknown') === options.typeIdSettings
55
+ (entry) => (entry?.sys?.contentType?.sys?.id ?? 'unknown') === options.typeIdSettings,
56
56
  );
57
57
  const settingsFields = settingsEntries
58
58
  .map((entry) => entry?.fields ?? {})
59
59
  .reduce((result, fields) => ({ ...result, ...fields }), {});
60
60
 
61
61
  return [locale, settingsFields];
62
- }
63
- )
62
+ },
63
+ ),
64
64
  );
65
65
  }
66
66
 
@@ -71,7 +71,7 @@ export default (args) => {
71
71
  const { contentTypeId } = transformContext;
72
72
  const [type = TYPE_DATA] =
73
73
  Object.entries(options?.typeConfig ?? {}).find(([, pattern]) =>
74
- mm.isMatch(contentTypeId, pattern)
74
+ mm.isMatch(contentTypeId, pattern),
75
75
  ) || [];
76
76
 
77
77
  return type;
@@ -170,7 +170,7 @@ export default (args) => {
170
170
  const subentries = menu?.fields?.[options.fieldIdMenuEntries] ?? [];
171
171
 
172
172
  const collected = await Promise.all(
173
- subentries.flatMap((node) => getChildnodesManual(node, depth - 1, [...ids, id]))
173
+ subentries.flatMap((node) => getChildnodesManual(node, depth - 1, [...ids, id])),
174
174
  );
175
175
 
176
176
  return [
@@ -202,19 +202,19 @@ export default (args) => {
202
202
  }
203
203
 
204
204
  const childnodes = [...entryMap.values()].filter(
205
- (entry) => (entry?.fields?.[options.fieldIdParent]?.sys?.id ?? '') === id
205
+ (entry) => (entry?.fields?.[options.fieldIdParent]?.sys?.id ?? '') === id,
206
206
  );
207
207
 
208
208
  // Filter childnodes based on hide_in_menu field
209
209
  const filtered = childnodes.filter(
210
- (entry) => !(entry?.fields?.[options.fieldIdMenuHide] ?? false)
210
+ (entry) => !(entry?.fields?.[options.fieldIdMenuHide] ?? false),
211
211
  );
212
212
 
213
213
  // Sort based on menuPos field
214
214
  const sorted = [...filtered].sort(
215
215
  (a, b) =>
216
216
  (a?.fields?.[options.fieldIdMenuPos] ?? Number.MAX_SAFE_INTEGER) -
217
- (b?.fields?.[options.fieldIdMenuPos] ?? Number.MAX_SAFE_INTEGER)
217
+ (b?.fields?.[options.fieldIdMenuPos] ?? Number.MAX_SAFE_INTEGER),
218
218
  );
219
219
 
220
220
  return Array.from(
@@ -234,7 +234,7 @@ export default (args) => {
234
234
  },
235
235
  })),
236
236
  ...sorted.flatMap((node) => getChildnodesRecursive(node, depth - 1)),
237
- ])
237
+ ]),
238
238
  )
239
239
  .map((a) => a.value)
240
240
  .filter((v) => v);
@@ -301,7 +301,7 @@ export default (args) => {
301
301
  ? { contentDir: `content/${hugoLocaleCode(locale)}`, ...localeConfig }
302
302
  : localeConfig,
303
303
  ];
304
- })
304
+ }),
305
305
  );
306
306
  await outputFile(dst, converter.yaml.stringify(languageConfig));
307
307
  }
@@ -319,7 +319,7 @@ export default (args) => {
319
319
  return nodes;
320
320
  }, new Set());
321
321
  return [localeCode, { ...contentfulData, sectionIds }];
322
- })
322
+ }),
323
323
  );
324
324
 
325
325
  return { ...runtimeContext, helper, localized: enhancedLocalized };
@@ -414,12 +414,12 @@ export default (args) => {
414
414
  ? path.join(
415
415
  ...(slugs || []).filter((v) => v),
416
416
  `${collectEntry?.fields?.[options.fieldIdSlug] ?? 'unknown'}.${hugoLocaleCode(
417
- locale
418
- )}.md`
417
+ locale,
418
+ )}.md`,
419
419
  )
420
420
  : path.join(
421
421
  ...(slugs || []).filter((v) => v),
422
- `${collectEntry?.fields?.[options.fieldIdSlug] ?? 'unknown'}.md`
422
+ `${collectEntry?.fields?.[options.fieldIdSlug] ?? 'unknown'}.md`,
423
423
  );
424
424
  }
425
425
 
@@ -494,7 +494,7 @@ export default (args) => {
494
494
  : {};
495
495
 
496
496
  return outputFile(dictionaryPath, yaml.stringify({ ...oldContent, ...translations }));
497
- })
497
+ }),
498
498
  );
499
499
 
500
500
  const menus = runtimeContext?.menus ?? {};
@@ -503,7 +503,7 @@ export default (args) => {
503
503
  const file = `config/_default/menus.${localeCode}.yaml`;
504
504
  const data = yaml.stringify(menuData);
505
505
  return outputFile(file, data);
506
- })
506
+ }),
507
507
  );
508
508
  },
509
509
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jungvonmatt/cssg-plugin-hugo",
3
- "version": "1.12.3",
3
+ "version": "1.14.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "typings": "./index.d.ts",
@@ -27,9 +27,9 @@
27
27
  },
28
28
  "homepage": "https://github.com/jungvonmatt/contentful-ssg#readme",
29
29
  "dependencies": {
30
- "@jungvonmatt/contentful-ssg": "^1.12.3",
31
- "fs-extra": "^10.1.0",
32
- "micromatch": "^4.0.4"
30
+ "@jungvonmatt/contentful-ssg": "^1.14.2",
31
+ "fs-extra": "^11.1.0",
32
+ "micromatch": "^4.0.5"
33
33
  },
34
- "gitHead": "6665c8e4b6a6958456c3fd47be63a0921fa21cf9"
34
+ "gitHead": "d756b309af186fb07772509b21f53efe8b01c6c9"
35
35
  }