@jungvonmatt/cssg-plugin-hugo 1.12.0 → 1.14.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/.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,5 +1,4 @@
1
- @jungvonmatt/cssg-plugin-hugo:lint: cache hit, replaying output f13b8c2d73811389
2
- @jungvonmatt/cssg-plugin-hugo:lint: 
3
- @jungvonmatt/cssg-plugin-hugo:lint: > @jungvonmatt/cssg-plugin-hugo@1.11.3 lint
4
- @jungvonmatt/cssg-plugin-hugo:lint: > eslint --color index.js --fix
5
- @jungvonmatt/cssg-plugin-hugo:lint: 
1
+
2
+ > @jungvonmatt/cssg-plugin-hugo@1.14.0 lint
3
+ > eslint --color index.js --fix
4
+
@@ -1,14 +1,14 @@
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
+ @jungvonmatt/cssg-plugin-hugo:test: cache hit, replaying output d3b325511730ce5b
2
+ @jungvonmatt/cssg-plugin-hugo:test: 
3
+ @jungvonmatt/cssg-plugin-hugo:test: > @jungvonmatt/cssg-plugin-hugo@1.12.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 (1 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: 3.224 s, estimated 4 s
14
+ @jungvonmatt/cssg-plugin-hugo:test: Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -3,395 +3,216 @@
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.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.11.3...v1.12.0) (2023-03-06)
6
+ # [1.14.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.13.0...v1.14.0) (2024-02-03)
7
7
 
8
8
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
9
9
 
10
+ ## [1.12.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.12.2...v1.12.3) (2023-03-06)
10
11
 
12
+ **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
11
13
 
14
+ # [1.12.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.11.3...v1.12.0) (2023-03-06)
12
15
 
16
+ **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
13
17
 
14
18
  ## [1.11.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.11.2...v1.11.3) (2023-02-16)
15
19
 
16
20
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
17
21
 
18
-
19
-
20
-
21
-
22
22
  ## [1.11.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.11.1...v1.11.2) (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.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.11.0...v1.11.1) (2023-02-14)
31
27
 
32
28
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
33
29
 
34
-
35
-
36
-
37
-
38
30
  # [1.11.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.10.0...v1.11.0) (2022-09-19)
39
31
 
40
32
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
41
33
 
42
-
43
-
44
-
45
-
46
34
  # [1.10.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.9.0...v1.10.0) (2022-09-15)
47
35
 
48
36
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
49
37
 
50
-
51
-
52
-
53
-
54
38
  # [1.9.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.8.2...v1.9.0) (2022-06-30)
55
39
 
56
-
57
40
  ### Features
58
41
 
59
- * **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))
60
-
61
-
62
-
63
-
42
+ - **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))
64
43
 
65
44
  # [1.8.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.4...v1.8.0) (2022-06-21)
66
45
 
67
46
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
68
47
 
69
-
70
-
71
-
72
-
73
48
  # [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)
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.5](https://github.com/jungvonmatt/contentful-ssg/compare/v1.8.0-alpha.4...v1.8.0-alpha.5) (2022-06-02)
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.4](https://github.com/jungvonmatt/contentful-ssg/compare/v1.8.0-alpha.2...v1.8.0-alpha.4) (2022-06-02)
90
57
 
91
-
92
58
  ### Bug Fixes
93
59
 
94
- * **sonar:** fix coverage stats ([a1f2538](https://github.com/jungvonmatt/contentful-ssg/commit/a1f2538b892029f36ab4af57e9ca311b12320b58))
95
-
96
-
97
-
98
-
60
+ - **sonar:** fix coverage stats ([a1f2538](https://github.com/jungvonmatt/contentful-ssg/commit/a1f2538b892029f36ab4af57e9ca311b12320b58))
99
61
 
100
62
  # [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)
101
63
 
102
-
103
64
  ### Bug Fixes
104
65
 
105
- * **sonar:** fix coverage stats ([a1f2538](https://github.com/jungvonmatt/contentful-ssg/commit/a1f2538b892029f36ab4af57e9ca311b12320b58))
106
-
107
-
108
-
109
-
66
+ - **sonar:** fix coverage stats ([a1f2538](https://github.com/jungvonmatt/contentful-ssg/commit/a1f2538b892029f36ab4af57e9ca311b12320b58))
110
67
 
111
68
  # [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)
112
69
 
113
70
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
114
71
 
115
-
116
-
117
-
118
-
119
72
  # [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)
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.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.4...v1.8.0-alpha.0) (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.7.4](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.3...v1.7.4) (2022-05-18)
136
81
 
137
-
138
82
  ### Bug Fixes
139
83
 
140
- * **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))
141
-
142
-
143
-
144
-
84
+ - **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))
145
85
 
146
86
  ## [1.7.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.2...v1.7.3) (2022-05-02)
147
87
 
148
88
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
149
89
 
150
-
151
-
152
-
153
-
154
90
  ## [1.7.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.1...v1.7.2) (2022-04-28)
155
91
 
156
92
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
157
93
 
158
-
159
-
160
-
161
-
162
94
  ## [1.7.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.7.0...v1.7.1) (2022-04-27)
163
95
 
164
96
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
165
97
 
166
-
167
-
168
-
169
-
170
98
  # [1.7.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.6.1...v1.7.0) (2022-04-26)
171
99
 
172
100
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
173
101
 
174
-
175
-
176
-
177
-
178
102
  ## [1.6.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.6.0...v1.6.1) (2022-04-05)
179
103
 
180
104
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
181
105
 
182
-
183
-
184
-
185
-
186
106
  ## [1.5.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.5.1...v1.5.2) (2022-03-23)
187
107
 
188
-
189
108
  ### Bug Fixes
190
109
 
191
- * **menu:** use submenu as default value for fieldIdMenu ([e7a8b55](https://github.com/jungvonmatt/contentful-ssg/commit/e7a8b55a61cb3d5284561b318d0bf5b2a92a835e))
192
-
193
-
194
-
195
-
110
+ - **menu:** use submenu as default value for fieldIdMenu ([e7a8b55](https://github.com/jungvonmatt/contentful-ssg/commit/e7a8b55a61cb3d5284561b318d0bf5b2a92a835e))
196
111
 
197
112
  ## [1.5.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.5.0...v1.5.1) (2022-02-23)
198
113
 
199
-
200
114
  ### Bug Fixes
201
115
 
202
- * **hugo-menu:** apply pageRef to child entries, too ([69c74a8](https://github.com/jungvonmatt/contentful-ssg/commit/69c74a8eef8fe6a98d1f17710818c2a87093873c))
203
-
204
-
205
-
206
-
116
+ - **hugo-menu:** apply pageRef to child entries, too ([69c74a8](https://github.com/jungvonmatt/contentful-ssg/commit/69c74a8eef8fe6a98d1f17710818c2a87093873c))
207
117
 
208
118
  # [1.5.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.12...v1.5.0) (2022-02-23)
209
119
 
210
-
211
120
  ### Features
212
121
 
213
- * **hugo-menu:** adds pageRef to menu entries ([6fe89a9](https://github.com/jungvonmatt/contentful-ssg/commit/6fe89a9c1d36a617e1ddb3cd5f1d27b96f4fab5f))
214
-
215
-
216
-
217
-
122
+ - **hugo-menu:** adds pageRef to menu entries ([6fe89a9](https://github.com/jungvonmatt/contentful-ssg/commit/6fe89a9c1d36a617e1ddb3cd5f1d27b96f4fab5f))
218
123
 
219
124
  ## [1.4.12](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.11...v1.4.12) (2022-02-23)
220
125
 
221
-
222
126
  ### Bug Fixes
223
127
 
224
- * fix syntax error ([53ac989](https://github.com/jungvonmatt/contentful-ssg/commit/53ac989b9ba92b5c8ccd8759c77b17cf6dcebd22))
225
-
226
-
227
-
228
-
128
+ - fix syntax error ([53ac989](https://github.com/jungvonmatt/contentful-ssg/commit/53ac989b9ba92b5c8ccd8759c77b17cf6dcebd22))
229
129
 
230
130
  ## [1.4.11](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.10...v1.4.11) (2022-02-23)
231
131
 
232
-
233
132
  ### Bug Fixes
234
133
 
235
- * **hugo-menu:** makes menu roots configurable ([ac10c2f](https://github.com/jungvonmatt/contentful-ssg/commit/ac10c2f73646016d3ac69fd96f8a2ebca2247043))
236
-
237
-
238
-
239
-
134
+ - **hugo-menu:** makes menu roots configurable ([ac10c2f](https://github.com/jungvonmatt/contentful-ssg/commit/ac10c2f73646016d3ac69fd96f8a2ebca2247043))
240
135
 
241
136
  ## [1.4.10](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.9...v1.4.10) (2022-02-22)
242
137
 
243
-
244
138
  ### Bug Fixes
245
139
 
246
- * **hugo-locales:** Lowercase ISO locale codes to work with hugo ([088cb0b](https://github.com/jungvonmatt/contentful-ssg/commit/088cb0b871e3d93fb75641a5c031e61011838cda))
247
-
248
-
249
-
250
-
140
+ - **hugo-locales:** Lowercase ISO locale codes to work with hugo ([088cb0b](https://github.com/jungvonmatt/contentful-ssg/commit/088cb0b871e3d93fb75641a5c031e61011838cda))
251
141
 
252
142
  ## [1.4.9](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.8...v1.4.9) (2022-02-11)
253
143
 
254
144
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
255
145
 
256
-
257
-
258
-
259
-
260
146
  ## [1.4.8](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.7...v1.4.8) (2022-02-09)
261
147
 
262
148
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
263
149
 
264
-
265
-
266
-
267
-
268
150
  ## [1.4.4](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.3...v1.4.4) (2022-01-24)
269
151
 
270
-
271
152
  ### Bug Fixes
272
153
 
273
- * 🐛 Fix menu sort ([589f341](https://github.com/jungvonmatt/contentful-ssg/commit/589f341ecedbad7fcaaae43b360fa06a73a404c6))
274
-
275
-
276
-
277
-
154
+ - 🐛 Fix menu sort ([589f341](https://github.com/jungvonmatt/contentful-ssg/commit/589f341ecedbad7fcaaae43b360fa06a73a404c6))
278
155
 
279
156
  ## [1.4.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.2...v1.4.3) (2022-01-24)
280
157
 
281
-
282
158
  ### Bug Fixes
283
159
 
284
- * 🐛 Don't deep merge settings ([298c15e](https://github.com/jungvonmatt/contentful-ssg/commit/298c15ed3c80dc222b42909db610c41e977a9110))
285
-
286
-
287
-
288
-
160
+ - 🐛 Don't deep merge settings ([298c15e](https://github.com/jungvonmatt/contentful-ssg/commit/298c15ed3c80dc222b42909db610c41e977a9110))
289
161
 
290
162
  # [1.4.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.3.2...v1.4.0) (2022-01-19)
291
163
 
292
164
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
293
165
 
294
-
295
-
296
-
297
-
298
166
  ## [1.3.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.3.1...v1.3.2) (2022-01-14)
299
167
 
300
168
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
301
169
 
302
-
303
-
304
-
305
-
306
170
  # [1.3.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.2.0...v1.3.0) (2022-01-10)
307
171
 
308
-
309
172
  ### Features
310
173
 
311
- * 🎸 Consider menu reference in page node when building menu ([42499a4](https://github.com/jungvonmatt/contentful-ssg/commit/42499a4efb2f25275d8ea4fb74f72461aa441ba0))
312
-
313
-
314
-
315
-
174
+ - 🎸 Consider menu reference in page node when building menu ([42499a4](https://github.com/jungvonmatt/contentful-ssg/commit/42499a4efb2f25275d8ea4fb74f72461aa441ba0))
316
175
 
317
176
  # [1.2.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.1.1...v1.2.0) (2021-12-21)
318
177
 
319
-
320
178
  ### Features
321
179
 
322
- * 🎸 Generates hugo's menu.toml ([27e95a3](https://github.com/jungvonmatt/contentful-ssg/commit/27e95a33452b1aa5158ee89070889383cee4b6c5))
323
-
324
-
325
-
326
-
180
+ - 🎸 Generates hugo's menu.toml ([27e95a3](https://github.com/jungvonmatt/contentful-ssg/commit/27e95a33452b1aa5158ee89070889383cee4b6c5))
327
181
 
328
182
  # [1.1.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.6...v1.1.0) (2021-12-02)
329
183
 
330
-
331
184
  ### Bug Fixes
332
185
 
333
- * 🐛 Adds <rootDir>/data to managed directories ([d67de2b](https://github.com/jungvonmatt/contentful-ssg/commit/d67de2b4a78771076e5fd1d4e7beec0c1fb65a7d))
334
-
335
-
336
-
337
-
186
+ - 🐛 Adds <rootDir>/data to managed directories ([d67de2b](https://github.com/jungvonmatt/contentful-ssg/commit/d67de2b4a78771076e5fd1d4e7beec0c1fb65a7d))
338
187
 
339
188
  ## [1.0.6](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.5...v1.0.6) (2021-12-02)
340
189
 
341
190
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
342
191
 
343
-
344
-
345
-
346
-
347
192
  ## [1.0.5](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.4...v1.0.5) (2021-11-30)
348
193
 
349
194
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
350
195
 
351
-
352
-
353
-
354
-
355
196
  ## [1.0.4](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.3...v1.0.4) (2021-11-29)
356
197
 
357
198
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
358
199
 
359
-
360
-
361
-
362
-
363
200
  ## [1.0.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.2...v1.0.3) (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.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.1...v1.0.2) (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.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.0...v1.0.1) (2021-11-25)
380
209
 
381
210
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
382
211
 
383
-
384
-
385
-
386
-
387
212
  # [1.0.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.0-alpha.0...v1.0.0) (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-alpha.0](https://github.com/jungvonmatt/contentful-ssg/compare/v0.17.3...v1.0.0-alpha.0) (2021-11-25)
396
217
 
397
218
  **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.0",
3
+ "version": "1.14.0",
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.0",
31
- "fs-extra": "^10.1.0",
32
- "micromatch": "^4.0.4"
30
+ "@jungvonmatt/contentful-ssg": "^1.14.0",
31
+ "fs-extra": "^11.1.0",
32
+ "micromatch": "^4.0.5"
33
33
  },
34
- "gitHead": "9f1ec72b6302079a22e4087fa752fe83dea8e6f7"
34
+ "gitHead": "4db0d37fb9851d2728628726691cd9b3becd4654"
35
35
  }