generator-razor 14.0.34 → 14.0.36

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
@@ -426,42 +426,47 @@ export default class extends Generator {
426
426
  }
427
427
 
428
428
  /*
429
- * Restore razorbootstrap from the generator template.
429
+ * Restore temporary extensions from generator templates.
430
430
  *
431
- * yarn --modules-folder and Razor's Initialisation/Extensions
432
- * may have modified typo3conf/ext before this point.
431
+ * They are copied here because Yarn and Razor's
432
+ * Initialisation/Extensions may have modified typo3conf/ext.
433
433
  */
434
434
  const templateVersion = this._getTemplateVersion()
435
435
 
436
- const razorBootstrapSource = this.templatePath(
437
- templateVersion,
438
- 'typo3conf/ext/razorbootstrap'
439
- )
436
+ const temporaryExtensions = [
437
+ 'razorkickstart',
438
+ 'razorbootstrap'
439
+ ]
440
440
 
441
- const razorBootstrapDestination = this.destinationPath(
442
- 'typo3conf/ext/razorbootstrap'
443
- )
441
+ for (const extension of temporaryExtensions) {
442
+ const source = this.templatePath(
443
+ templateVersion,
444
+ `typo3conf/ext/${extension}`
445
+ )
444
446
 
445
- await fs.remove(
446
- razorBootstrapDestination
447
- )
447
+ const destination = this.destinationPath(
448
+ `typo3conf/ext/${extension}`
449
+ )
448
450
 
449
- await fs.copy(
450
- razorBootstrapSource,
451
- razorBootstrapDestination,
452
- {
453
- overwrite: true,
454
- errorOnExist: false,
455
- dereference: false
456
- }
457
- )
451
+ await fs.remove(destination)
458
452
 
459
- if (!await fs.pathExists(
460
- path.join(razorBootstrapDestination, 'composer.json')
461
- )) {
462
- throw new Error(
463
- 'razorbootstrap was not copied from the generator template.'
453
+ await fs.copy(
454
+ source,
455
+ destination,
456
+ {
457
+ overwrite: true,
458
+ errorOnExist: false,
459
+ dereference: false
460
+ }
464
461
  )
462
+
463
+ if (!await fs.pathExists(
464
+ path.join(destination, 'composer.json')
465
+ )) {
466
+ throw new Error(
467
+ `${extension} was not copied from the generator template.`
468
+ )
469
+ }
465
470
  }
466
471
 
467
472
  await this._fixProjectGroup()
@@ -472,38 +477,82 @@ export default class extends Generator {
472
477
  )
473
478
 
474
479
  /*
475
- * Bootstrap
480
+ * Start TYPO3 with completely fresh caches.
481
+ *
482
+ * Important before activating the first temporary extension,
483
+ * otherwise stale configuration may still reference caches
484
+ * removed in newer TYPO3 versions.
476
485
  */
486
+ this.log('→ Preparing TYPO3 caches...')
477
487
 
478
- this.log('→ Activating razor bootstrap...')
488
+ await fs.remove(
489
+ this.destinationPath('typo3temp/var/cache')
490
+ )
479
491
 
480
492
  await this._runCommand(
481
493
  typo3,
482
- ['extension:activate', 'razorbootstrap']
494
+ ['cache:flush']
495
+ )
496
+
497
+ /*
498
+ * Razor Kickstart
499
+ */
500
+ this.log('→ Activating Razor kickstart...')
501
+
502
+ await this._runCommand(
503
+ typo3,
504
+ ['extension:activate', 'razorkickstart']
483
505
  )
484
506
 
485
507
  this.log('→ Updating TER extension list...')
486
508
 
487
509
  await this._runCommand(
488
510
  typo3,
489
- ['razorbootstrap:ter:update']
511
+ ['razorkickstart:ter:update']
512
+ )
513
+
514
+ /*
515
+ * Razor Bootstrap
516
+ *
517
+ * Now that the TER extension list is current, TYPO3 can safely
518
+ * resolve and download Razor's dependencies.
519
+ */
520
+ this.log('→ Activating Razor bootstrap...')
521
+
522
+ await this._runCommand(
523
+ typo3,
524
+ ['extension:activate', 'razorbootstrap']
490
525
  )
491
526
 
492
- this.log('→ Removing razor bootstrap...')
527
+ /*
528
+ * Remove temporary extensions.
529
+ */
530
+ this.log('→ Removing Razor bootstrap...')
493
531
 
494
532
  await this._runCommand(
495
533
  typo3,
496
534
  ['extension:deactivate', 'razorbootstrap']
497
535
  )
498
536
 
499
- await fs.remove(
500
- razorBootstrapDestination
537
+ this.log('→ Removing Razor kickstart...')
538
+
539
+ await this._runCommand(
540
+ typo3,
541
+ ['extension:deactivate', 'razorkickstart']
501
542
  )
502
543
 
544
+ for (const extension of temporaryExtensions) {
545
+ await fs.remove(
546
+ this.destinationPath(
547
+ `typo3conf/ext/${extension}`
548
+ )
549
+ )
550
+ }
551
+
503
552
  /*
504
- * Clear stale package / DI information
553
+ * Clear stale package / DI caches after removing the
554
+ * temporary extensions.
505
555
  */
506
-
507
556
  this.log('→ Flushing TYPO3 caches...')
508
557
 
509
558
  await fs.remove(
@@ -516,56 +565,52 @@ export default class extends Generator {
516
565
  )
517
566
 
518
567
  /*
519
- * Install Razor
568
+ * Activate Razor.
569
+ *
570
+ * Razor's InstallService should create razor.sh.
520
571
  */
521
-
522
- this.log('→ Activating razor...')
572
+ this.log('→ Activating Razor...')
523
573
 
524
574
  await this._runCommand(
525
575
  typo3,
526
576
  ['extension:activate', 'razor']
527
577
  )
528
578
 
529
- /*
530
- * Razor's InstallService creates razor.sh
531
- */
532
-
533
579
  const razorScript = this.destinationPath(
534
580
  'razor.sh'
535
581
  )
536
582
 
537
583
  if (!await fs.pathExists(razorScript)) {
538
584
  throw new Error(
539
- 'razor.sh was not created during razor installation.'
585
+ 'razor.sh was not created during Razor installation.'
540
586
  )
541
587
  }
542
588
 
589
+ /*
590
+ * Hand over to the Razor installer.
591
+ */
592
+ this.log('→ Starting Razor installer...')
593
+
594
+ await this._runCommand(
595
+ 'bash',
596
+ ['./razor.sh']
597
+ )
598
+
543
599
  const orange = chalk.ansi256(208)
544
600
  const petrol = chalk.ansi256(24)
545
601
 
546
602
  this.log(orange(`
547
- ██████╗ ██████╗ ███╗ ██╗███████╗
548
- ██╔══██╗██╔═══██╗████╗ ██║██╔════╝
549
- ██║ ██║██║ ██║██╔██╗ ██║█████╗
550
- ██║ ██║██║ ██║██║╚██╗██║██╔══╝
551
- ██████╔╝╚██████╔╝██║ ╚████║███████╗
552
- ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝
553
- `))
603
+ ██████╗ ██████╗ ███╗ ██╗███████╗
604
+ ██╔══██╗██╔═══██╗████╗ ██║██╔════╝
605
+ ██║ ██║██║ ██║██╔██╗ ██║█████╗
606
+ ██║ ██║██║ ██║██║╚██╗██║██╔══╝
607
+ ██████╔╝╚██████╔╝██║ ╚████║███████╗
608
+ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝
609
+ `))
554
610
 
555
611
  this.log(petrol(
556
612
  ` ${this.props.ProjectName} was generated successfully.\n`
557
613
  ))
558
-
559
- /*
560
- * Hand over to Razor
561
- */
562
-
563
- this.log('→ Starting razor installer...')
564
-
565
- await this._runCommand(
566
- 'bash',
567
- ['./razor.sh']
568
- )
569
614
  }
570
615
 
571
616
  async _fixProjectGroup () {
@@ -7,17 +7,19 @@ $EM_CONF[$_EXTKEY] = [
7
7
  'author' => 'Raphael Zschorsch',
8
8
  'author_email' => 'rafu1987@gmail.com',
9
9
  'state' => 'stable',
10
- 'version' => '14.0.0',
10
+ 'version' => '14.3.0',
11
11
  'constraints' => [
12
12
  'depends' => [
13
- 'php' => '8.3.0-8.99.99',
13
+ 'extbase' => '14.3.0-14.99.99',
14
+ 'fluid' => '14.3.0-14.99.99',
14
15
  'typo3' => '14.3.0-14.99.99',
15
- 'razor' => '14.0.0-14.99.99',
16
- 'razorce' => '14.0.0-14.99.99',
17
- 'razornews' => '14.0.0-14.99.99',
18
- 'razormin' => '14.0.0-14.99.99',
19
- 'razorcookieconsent' => '14.0.0-14.99.99',
20
- 'razorsite' => '14.0.0-14.99.99',
16
+ 'php' => '8.2.0-8.5.99',
17
+ 'razor' => '14.3.0-14.99.99',
18
+ 'razorce' => '14.3.0-14.99.99',
19
+ 'razornews' => '14.3.0-14.99.99',
20
+ 'razormin' => '14.3.0-14.99.99',
21
+ 'razorcookieconsent' => '14.3.0-14.99.99',
22
+ 'razorsite' => '14.3.0-14.99.99',
21
23
  ],
22
24
  'conflicts' => [],
23
25
  'suggests' => [],
@@ -15,7 +15,7 @@ declare(strict_types=1);
15
15
  * The TYPO3 project - inspiring people to share!
16
16
  */
17
17
 
18
- namespace RZ\Razorbootstrap\Command;
18
+ namespace RZ\Razorkickstart\Command;
19
19
 
20
20
  use Symfony\Component\Console\Attribute\AsCommand;
21
21
  use Symfony\Component\Console\Command\Command;
@@ -27,7 +27,7 @@ use TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException;
27
27
  use TYPO3\CMS\Extensionmanager\Remote\RemoteRegistry;
28
28
 
29
29
  #[AsCommand(
30
- name: 'razorbootstrap:ter:update',
30
+ name: 'razorkickstart:ter:update',
31
31
  description: 'Updates the TYPO3 Extension Repository extension list'
32
32
  )]
33
33
  #[AsNonSchedulableCommand]
@@ -4,5 +4,5 @@ services:
4
4
  autoconfigure: true
5
5
  public: false
6
6
 
7
- RZ\Razorbootstrap\:
7
+ RZ\Razorkickstart\:
8
8
  resource: '../Classes/*'
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "rafu1987/razorkickstart",
3
+ "type": "typo3-cms-extension",
4
+ "description": "razor kickstart - razor kickstart",
5
+ "require": {
6
+ "typo3/cms-extbase": "^14.3",
7
+ "typo3/cms-fluid": "^14.3",
8
+ "typo3/cms-core": "^14.3",
9
+ "php": "^8.2 || ^8.5"
10
+ },
11
+ "autoload": {
12
+ "psr-4": {
13
+ "RZ\\Razorkickstart\\": "Classes/"
14
+ }
15
+ },
16
+ "extra": {
17
+ "typo3/cms": {
18
+ "extension-key": "razorkickstart",
19
+ "version": "14.3.0",
20
+ "extra": {
21
+ "typo3/cms": {
22
+ "extension-key": "razor",
23
+ "version": "14.3.0",
24
+ "Package": {
25
+ "providesPackages": {}
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
@@ -84,12 +84,6 @@ return [
84
84
  'compression' => true,
85
85
  ],
86
86
  ],
87
- 'pagesection' => [
88
- 'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend',
89
- 'options' => [
90
- 'compression' => true,
91
- ],
92
- ],
93
87
  'rootline' => [
94
88
  'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend',
95
89
  'options' => [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-razor",
3
- "version": "14.0.34",
3
+ "version": "14.0.36",
4
4
  "description": "Yeoman generator for razor TYPO3 distribution",
5
5
  "license": "MIT",
6
6
  "main": "app/index.js",
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 150.6 148.7" xmlns="http://www.w3.org/2000/svg"><path d="m118.7 30.4c.2-.3 0-.8-.3-.9-.2-.1-.4-.1-.7 0l-29.6 15.1 2.8 11.1c.5 1.6-.2 3.4-1.8 4.2l-2 1-82.3 41.7c8.9 23 28.5 40.2 52.4 46.1zm-36.5-2.6 32.6-16.6c-35.5-21.8-82-10.8-103.8 24.7-6.3 10.2-10.1 21.7-11 33.7zm11.9 120.7c40.3-10.5 64.5-51.7 54-92-1.6-6.1-4-12.1-7-17.6l-47 109.7z" fill="#f18519"/></svg>