generator-razor 4.0.3 → 13.4.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/app/index.js CHANGED
@@ -295,11 +295,13 @@ module.exports = class extends Generator {
295
295
  version = '115'
296
296
  } else if (rzr.Version.indexOf('12.4') !== -1) {
297
297
  version = '124'
298
+ } else if (rzr.Version.indexOf('13.4') !== -1) {
299
+ version = '134'
298
300
  }
299
301
 
300
302
  this._createSymlinks(this, path, () => {
301
303
  copydir(t.templatePath(version), t.destinationPath('./'), () => {
302
- if (version === '124') {
304
+ if (version === '124' || version === '134') {
303
305
  t._localconf12(t)
304
306
  t._local12Settings(t)
305
307
  } else {
@@ -327,6 +329,8 @@ module.exports = class extends Generator {
327
329
  branch = 'razor11'
328
330
  } else if (rzr.Version.indexOf('12.4') !== -1) {
329
331
  branch = 'razor12-dev'
332
+ } else if (rzr.Version.indexOf('13.4') !== -1) {
333
+ branch = 'razor13-dev'
330
334
  }
331
335
 
332
336
  // yarn settings
@@ -344,7 +348,7 @@ module.exports = class extends Generator {
344
348
  fs.unlink('typo3conf/ext/.yarn-integrity', () => {})
345
349
 
346
350
  // Copy razor extensions after install to typo3conf/ext/, starting with TYPO3 >= 11.5.x
347
- if (rzr.Version.indexOf('11.5') !== -1 || rzr.Version.indexOf('12.4') !== -1) {
351
+ if (rzr.Version.indexOf('11.5') !== -1 || rzr.Version.indexOf('12.4') !== -1 || rzr.Version.indexOf('13.4') !== -1) {
348
352
  fs.copy('typo3conf/ext/razor/Initialisation/Extensions', 'typo3conf/ext')
349
353
  }
350
354
  }
@@ -360,8 +364,9 @@ module.exports = class extends Generator {
360
364
  const releases10 = body['10']['releases']
361
365
  const releases11 = body['11']['releases']
362
366
  const releases12 = body['12']['releases']
367
+ const releases13 = body['13']['releases']
363
368
 
364
- const releasesObj = t._mergeOptions(releases12, releases11, releases10, releases9)
369
+ const releasesObj = t._mergeOptions(releases13, releases12, releases11, releases10, releases9)
365
370
 
366
371
  const keys = Object.keys(releasesObj)
367
372
  const len = keys.length
@@ -369,7 +374,7 @@ module.exports = class extends Generator {
369
374
 
370
375
  // Filter out only 11.5.x 10.4.x, 9.5.x
371
376
  for (let i = 0; i < len; i++) {
372
- if (keys[i].indexOf('9.5.') !== -1 || keys[i].indexOf('10.4.') !== -1 || keys[i].indexOf('11.5.') !== -1 || keys[i].indexOf('12.4.') !== -1) {
377
+ if (keys[i].indexOf('9.5.') !== -1 || keys[i].indexOf('10.4.') !== -1 || keys[i].indexOf('11.5.') !== -1 || keys[i].indexOf('12.4.') !== -1 || keys[i].indexOf('13.4.') !== -1) {
373
378
  arr.push({
374
379
  name: keys[i],
375
380
  value: keys[i]
@@ -543,6 +543,14 @@ RewriteRule ^.*\.sfc$ %{ENV:CWD}index.php?eID=sfc_manifest [QSA,L]
543
543
  ForceType text/html
544
544
  # AddType "text/html" .gz
545
545
  </FilesMatch>
546
+ <FilesMatch "\.js\.gz$">
547
+ ForceType text/javascript
548
+ # AddType "text/javascript" .gzip
549
+ </FilesMatch>
550
+ <FilesMatch "\.css\.gz$">
551
+ ForceType text/css
552
+ # AddType "text/css" .gzip
553
+ </FilesMatch>
546
554
  <FilesMatch "\.xml\.gz$">
547
555
  ForceType text/xml
548
556
  # AddType "text/xml" .gz
@@ -543,6 +543,14 @@ RewriteRule ^.*\.sfc$ %{ENV:CWD}index.php?eID=sfc_manifest [QSA,L]
543
543
  ForceType text/html
544
544
  # AddType "text/html" .gz
545
545
  </FilesMatch>
546
+ <FilesMatch "\.js\.gz$">
547
+ ForceType text/javascript
548
+ # AddType "text/javascript" .gzip
549
+ </FilesMatch>
550
+ <FilesMatch "\.css\.gz$">
551
+ ForceType text/css
552
+ # AddType "text/css" .gzip
553
+ </FilesMatch>
546
554
  <FilesMatch "\.xml\.gz$">
547
555
  ForceType text/xml
548
556
  # AddType "text/xml" .gz