generator-razor 14.0.34 → 14.0.35
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 +93 -63
- package/app/templates/143/typo3conf/ext/razorbootstrap/ext_emconf.php +10 -8
- package/app/templates/143/typo3conf/ext/{razorbootstrap → razorkickstart}/Classes/Command/UpdateTerCommand.php +2 -2
- package/app/templates/143/typo3conf/ext/{razorbootstrap → razorkickstart}/Configuration/Services.yaml +1 -1
- package/app/templates/143/typo3conf/ext/razorkickstart/composer.json +31 -0
- package/package.json +1 -1
- package/app/templates/143/typo3conf/ext/razorbootstrap/Resources/Public/Icons/Extension.svg +0 -1
package/app/index.js
CHANGED
|
@@ -426,42 +426,47 @@ export default class extends Generator {
|
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
/*
|
|
429
|
-
* Restore
|
|
429
|
+
* Restore temporary extensions from generator templates.
|
|
430
430
|
*
|
|
431
|
-
*
|
|
432
|
-
* may have modified typo3conf/ext
|
|
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
|
|
437
|
-
|
|
438
|
-
'
|
|
439
|
-
|
|
436
|
+
const temporaryExtensions = [
|
|
437
|
+
'razorkickstart',
|
|
438
|
+
'razorbootstrap'
|
|
439
|
+
]
|
|
440
440
|
|
|
441
|
-
const
|
|
442
|
-
|
|
443
|
-
|
|
441
|
+
for (const extension of temporaryExtensions) {
|
|
442
|
+
const source = this.templatePath(
|
|
443
|
+
templateVersion,
|
|
444
|
+
`typo3conf/ext/${extension}`
|
|
445
|
+
)
|
|
444
446
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
447
|
+
const destination = this.destinationPath(
|
|
448
|
+
`typo3conf/ext/${extension}`
|
|
449
|
+
)
|
|
448
450
|
|
|
449
|
-
|
|
450
|
-
razorBootstrapSource,
|
|
451
|
-
razorBootstrapDestination,
|
|
452
|
-
{
|
|
453
|
-
overwrite: true,
|
|
454
|
-
errorOnExist: false,
|
|
455
|
-
dereference: false
|
|
456
|
-
}
|
|
457
|
-
)
|
|
451
|
+
await fs.remove(destination)
|
|
458
452
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
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,67 @@ export default class extends Generator {
|
|
|
472
477
|
)
|
|
473
478
|
|
|
474
479
|
/*
|
|
475
|
-
*
|
|
480
|
+
* Razor Kickstart
|
|
481
|
+
*
|
|
482
|
+
* This extension has no external dependencies and only exists
|
|
483
|
+
* to make the TER update command available.
|
|
476
484
|
*/
|
|
477
|
-
|
|
478
|
-
this.log('→ Activating razor bootstrap...')
|
|
485
|
+
this.log('→ Activating Razor kickstart...')
|
|
479
486
|
|
|
480
487
|
await this._runCommand(
|
|
481
488
|
typo3,
|
|
482
|
-
['extension:activate', '
|
|
489
|
+
['extension:activate', 'razorkickstart']
|
|
483
490
|
)
|
|
484
491
|
|
|
485
492
|
this.log('→ Updating TER extension list...')
|
|
486
493
|
|
|
487
494
|
await this._runCommand(
|
|
488
495
|
typo3,
|
|
489
|
-
['
|
|
496
|
+
['razorkickstart:ter:update']
|
|
497
|
+
)
|
|
498
|
+
|
|
499
|
+
/*
|
|
500
|
+
* Razor Bootstrap
|
|
501
|
+
*
|
|
502
|
+
* Now that the TER extension list is current, TYPO3 can safely
|
|
503
|
+
* resolve and download Razor's dependencies.
|
|
504
|
+
*/
|
|
505
|
+
this.log('→ Activating Razor bootstrap...')
|
|
506
|
+
|
|
507
|
+
await this._runCommand(
|
|
508
|
+
typo3,
|
|
509
|
+
['extension:activate', 'razorbootstrap']
|
|
490
510
|
)
|
|
491
511
|
|
|
492
|
-
|
|
512
|
+
/*
|
|
513
|
+
* Remove temporary extensions.
|
|
514
|
+
*/
|
|
515
|
+
this.log('→ Removing Razor bootstrap...')
|
|
493
516
|
|
|
494
517
|
await this._runCommand(
|
|
495
518
|
typo3,
|
|
496
519
|
['extension:deactivate', 'razorbootstrap']
|
|
497
520
|
)
|
|
498
521
|
|
|
499
|
-
|
|
500
|
-
|
|
522
|
+
this.log('→ Removing Razor kickstart...')
|
|
523
|
+
|
|
524
|
+
await this._runCommand(
|
|
525
|
+
typo3,
|
|
526
|
+
['extension:deactivate', 'razorkickstart']
|
|
501
527
|
)
|
|
502
528
|
|
|
529
|
+
for (const extension of temporaryExtensions) {
|
|
530
|
+
await fs.remove(
|
|
531
|
+
this.destinationPath(
|
|
532
|
+
`typo3conf/ext/${extension}`
|
|
533
|
+
)
|
|
534
|
+
)
|
|
535
|
+
}
|
|
536
|
+
|
|
503
537
|
/*
|
|
504
|
-
* Clear stale package / DI
|
|
538
|
+
* Clear stale package / DI caches after removing the
|
|
539
|
+
* temporary extensions.
|
|
505
540
|
*/
|
|
506
|
-
|
|
507
541
|
this.log('→ Flushing TYPO3 caches...')
|
|
508
542
|
|
|
509
543
|
await fs.remove(
|
|
@@ -516,56 +550,52 @@ export default class extends Generator {
|
|
|
516
550
|
)
|
|
517
551
|
|
|
518
552
|
/*
|
|
519
|
-
*
|
|
553
|
+
* Activate Razor.
|
|
554
|
+
*
|
|
555
|
+
* Razor's InstallService should create razor.sh.
|
|
520
556
|
*/
|
|
521
|
-
|
|
522
|
-
this.log('→ Activating razor...')
|
|
557
|
+
this.log('→ Activating Razor...')
|
|
523
558
|
|
|
524
559
|
await this._runCommand(
|
|
525
560
|
typo3,
|
|
526
561
|
['extension:activate', 'razor']
|
|
527
562
|
)
|
|
528
563
|
|
|
529
|
-
/*
|
|
530
|
-
* Razor's InstallService creates razor.sh
|
|
531
|
-
*/
|
|
532
|
-
|
|
533
564
|
const razorScript = this.destinationPath(
|
|
534
565
|
'razor.sh'
|
|
535
566
|
)
|
|
536
567
|
|
|
537
568
|
if (!await fs.pathExists(razorScript)) {
|
|
538
569
|
throw new Error(
|
|
539
|
-
'razor.sh was not created during
|
|
570
|
+
'razor.sh was not created during Razor installation.'
|
|
540
571
|
)
|
|
541
572
|
}
|
|
542
573
|
|
|
574
|
+
/*
|
|
575
|
+
* Hand over to the Razor installer.
|
|
576
|
+
*/
|
|
577
|
+
this.log('→ Starting Razor installer...')
|
|
578
|
+
|
|
579
|
+
await this._runCommand(
|
|
580
|
+
'bash',
|
|
581
|
+
['./razor.sh']
|
|
582
|
+
)
|
|
583
|
+
|
|
543
584
|
const orange = chalk.ansi256(208)
|
|
544
585
|
const petrol = chalk.ansi256(24)
|
|
545
586
|
|
|
546
587
|
this.log(orange(`
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
588
|
+
██████╗ ██████╗ ███╗ ██╗███████╗
|
|
589
|
+
██╔══██╗██╔═══██╗████╗ ██║██╔════╝
|
|
590
|
+
██║ ██║██║ ██║██╔██╗ ██║█████╗
|
|
591
|
+
██║ ██║██║ ██║██║╚██╗██║██╔══╝
|
|
592
|
+
██████╔╝╚██████╔╝██║ ╚████║███████╗
|
|
593
|
+
╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝
|
|
594
|
+
`))
|
|
554
595
|
|
|
555
596
|
this.log(petrol(
|
|
556
597
|
` ${this.props.ProjectName} was generated successfully.\n`
|
|
557
598
|
))
|
|
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
599
|
}
|
|
570
600
|
|
|
571
601
|
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.
|
|
10
|
+
'version' => '14.3.0',
|
|
11
11
|
'constraints' => [
|
|
12
12
|
'depends' => [
|
|
13
|
-
'
|
|
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
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
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\
|
|
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: '
|
|
30
|
+
name: 'razorkickstart:ter:update',
|
|
31
31
|
description: 'Updates the TYPO3 Extension Repository extension list'
|
|
32
32
|
)]
|
|
33
33
|
#[AsNonSchedulableCommand]
|
|
@@ -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
|
+
}
|
package/package.json
CHANGED
|
@@ -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>
|