generator-razor 14.0.43 → 14.0.45
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
|
@@ -482,7 +482,9 @@ export default class extends Generator {
|
|
|
482
482
|
/*
|
|
483
483
|
* Start TYPO3 with completely fresh caches.
|
|
484
484
|
*/
|
|
485
|
-
this.log(
|
|
485
|
+
this.log(orange(
|
|
486
|
+
`→ Preparing TYPO3 caches...`
|
|
487
|
+
))
|
|
486
488
|
|
|
487
489
|
await fs.remove(
|
|
488
490
|
this.destinationPath('typo3temp/var/cache')
|
|
@@ -499,7 +501,9 @@ export default class extends Generator {
|
|
|
499
501
|
* This extension has no external dependencies and provides
|
|
500
502
|
* the TER update and installation commands.
|
|
501
503
|
*/
|
|
502
|
-
this.log(
|
|
504
|
+
this.log(orange(
|
|
505
|
+
`→ Activating razor kickstart...`
|
|
506
|
+
))
|
|
503
507
|
|
|
504
508
|
await this._runCommand(
|
|
505
509
|
typo3,
|
|
@@ -509,7 +513,9 @@ export default class extends Generator {
|
|
|
509
513
|
/*
|
|
510
514
|
* Update TER extension list.
|
|
511
515
|
*/
|
|
512
|
-
this.log(
|
|
516
|
+
this.log(orange(
|
|
517
|
+
`→ Updating TER extension list...`
|
|
518
|
+
))
|
|
513
519
|
|
|
514
520
|
await this._runCommand(
|
|
515
521
|
typo3,
|
|
@@ -521,7 +527,9 @@ export default class extends Generator {
|
|
|
521
527
|
*
|
|
522
528
|
* Nothing is activated by this command.
|
|
523
529
|
*/
|
|
524
|
-
this.log(
|
|
530
|
+
this.log(orange(
|
|
531
|
+
`→ Preparing razor dependencies...`
|
|
532
|
+
))
|
|
525
533
|
|
|
526
534
|
await this._runCommand(
|
|
527
535
|
typo3,
|
|
@@ -534,7 +542,9 @@ export default class extends Generator {
|
|
|
534
542
|
* This command must only update package states. It must not
|
|
535
543
|
* perform TCA loading or extension setup in this process.
|
|
536
544
|
*/
|
|
537
|
-
this.log(
|
|
545
|
+
this.log(orange(
|
|
546
|
+
`→ Activating razor packages...`
|
|
547
|
+
))
|
|
538
548
|
|
|
539
549
|
await this._runCommand(
|
|
540
550
|
typo3,
|
|
@@ -547,7 +557,9 @@ export default class extends Generator {
|
|
|
547
557
|
*
|
|
548
558
|
* Remove the old DI/cache state before starting TYPO3 again.
|
|
549
559
|
*/
|
|
550
|
-
this.log(
|
|
560
|
+
this.log(orange(
|
|
561
|
+
`→ Preparing TYPO3 for razor setup...`
|
|
562
|
+
))
|
|
551
563
|
|
|
552
564
|
await fs.remove(
|
|
553
565
|
this.destinationPath('typo3temp/var/cache')
|
|
@@ -560,7 +572,9 @@ export default class extends Generator {
|
|
|
560
572
|
* so their services can participate in DI compilation before
|
|
561
573
|
* extension initialization and TCA loading starts.
|
|
562
574
|
*/
|
|
563
|
-
this.log(
|
|
575
|
+
this.log(orange(
|
|
576
|
+
`→ Setting up razor framework...`
|
|
577
|
+
))
|
|
564
578
|
|
|
565
579
|
await this._runCommand(
|
|
566
580
|
typo3,
|
|
@@ -584,14 +598,18 @@ export default class extends Generator {
|
|
|
584
598
|
/*
|
|
585
599
|
* Remove temporary helper extensions.
|
|
586
600
|
*/
|
|
587
|
-
this.log(
|
|
601
|
+
this.log(orange(
|
|
602
|
+
`→ Removing razor bootstrap...`
|
|
603
|
+
))
|
|
588
604
|
|
|
589
605
|
await this._runCommand(
|
|
590
606
|
typo3,
|
|
591
607
|
['extension:deactivate', 'razorbootstrap']
|
|
592
608
|
)
|
|
593
609
|
|
|
594
|
-
this.log(
|
|
610
|
+
this.log(orange(
|
|
611
|
+
`→ Removing razor kickstart...`
|
|
612
|
+
))
|
|
595
613
|
|
|
596
614
|
await this._runCommand(
|
|
597
615
|
typo3,
|
|
@@ -606,16 +624,6 @@ export default class extends Generator {
|
|
|
606
624
|
)
|
|
607
625
|
}
|
|
608
626
|
|
|
609
|
-
/*
|
|
610
|
-
* Hand over to the Razor installer.
|
|
611
|
-
*/
|
|
612
|
-
this.log('→ Starting razor installer...')
|
|
613
|
-
|
|
614
|
-
await this._runCommand(
|
|
615
|
-
'bash',
|
|
616
|
-
['./razor.sh']
|
|
617
|
-
)
|
|
618
|
-
|
|
619
627
|
const orange = chalk.ansi256(208)
|
|
620
628
|
const petrol = chalk.ansi256(24)
|
|
621
629
|
|
|
@@ -629,8 +637,18 @@ export default class extends Generator {
|
|
|
629
637
|
`))
|
|
630
638
|
|
|
631
639
|
this.log(petrol(
|
|
632
|
-
|
|
640
|
+
`${this.props.ProjectName} was generated successfully.\n`
|
|
633
641
|
))
|
|
642
|
+
|
|
643
|
+
/*
|
|
644
|
+
* Hand over to the Razor installer.
|
|
645
|
+
*/
|
|
646
|
+
this.log('→ Starting razor installer...')
|
|
647
|
+
|
|
648
|
+
await this._runCommand(
|
|
649
|
+
'bash',
|
|
650
|
+
['./razor.sh']
|
|
651
|
+
)
|
|
634
652
|
}
|
|
635
653
|
|
|
636
654
|
async _fixProjectGroup () {
|
|
@@ -1163,8 +1181,14 @@ export default class extends Generator {
|
|
|
1163
1181
|
}
|
|
1164
1182
|
|
|
1165
1183
|
async _setRazorConfig () {
|
|
1184
|
+
const devDomain = process.env.DEV_DOMAIN ?? ''
|
|
1185
|
+
const projectName = path.basename(this.destinationRoot())
|
|
1186
|
+
|
|
1166
1187
|
const config = {
|
|
1167
1188
|
siteName: this.props.ProjectName,
|
|
1189
|
+
localDomain: devDomain
|
|
1190
|
+
? `${projectName}.${devDomain}`
|
|
1191
|
+
: '',
|
|
1168
1192
|
user: this.props.User,
|
|
1169
1193
|
adminEmail: this.props.AdminEmail,
|
|
1170
1194
|
english: this.props.English,
|
|
@@ -47,7 +47,7 @@ final class InstallCommand extends Command
|
|
|
47
47
|
): int {
|
|
48
48
|
$io = new SymfonyStyle($input, $output);
|
|
49
49
|
|
|
50
|
-
$io->writeln('Preparing razor package states
|
|
50
|
+
$io->writeln('<fg=cyan>Preparing razor package states...</>');
|
|
51
51
|
|
|
52
52
|
/*
|
|
53
53
|
* Resolve the complete installation queue again.
|
|
@@ -105,7 +105,7 @@ final class InstallCommand extends Command
|
|
|
105
105
|
foreach (array_keys($installQueue) as $extensionKey) {
|
|
106
106
|
$io->writeln(
|
|
107
107
|
sprintf(
|
|
108
|
-
'Activating package %s
|
|
108
|
+
'<fg=green>✓ Activating package %s...</>',
|
|
109
109
|
$extensionKey
|
|
110
110
|
)
|
|
111
111
|
);
|
|
@@ -124,7 +124,7 @@ final class InstallCommand extends Command
|
|
|
124
124
|
* newly activated extensions.
|
|
125
125
|
*/
|
|
126
126
|
$io->writeln(
|
|
127
|
-
'Rebuilding TYPO3 class loading information
|
|
127
|
+
'<fg=cyan>Rebuilding TYPO3 class loading information...</>'
|
|
128
128
|
);
|
|
129
129
|
|
|
130
130
|
ClassLoadingInformation::dumpClassLoadingInformation();
|
|
@@ -42,7 +42,7 @@ final class PrepareCommand extends Command
|
|
|
42
42
|
): int {
|
|
43
43
|
$io = new SymfonyStyle($input, $output);
|
|
44
44
|
|
|
45
|
-
$io->writeln('Preparing razor dependencies
|
|
45
|
+
$io->writeln('<fg=cyan>Preparing razor dependencies...</>');
|
|
46
46
|
|
|
47
47
|
$extension = $this->extensionManagementService->getExtension(
|
|
48
48
|
'razorbootstrap'
|