generator-razor 14.0.29 → 14.0.31
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 +76 -0
- package/app/templates/143/typo3conf/ext/razorbootstrap/Classes/Command/UpdateTerCommand.php +64 -0
- package/app/templates/143/typo3conf/ext/razorbootstrap/Configuration/Services.yaml +8 -0
- package/app/templates/143/typo3conf/ext/razorbootstrap/Resources/Public/Icons/Extension.svg +1 -0
- package/app/templates/143/typo3conf/ext/razorbootstrap/composer.json +39 -0
- package/app/templates/143/typo3conf/ext/razorbootstrap/ext_emconf.php +30 -0
- package/package.json +1 -1
package/app/index.js
CHANGED
|
@@ -428,6 +428,82 @@ export default class extends Generator {
|
|
|
428
428
|
await this._fixProjectGroup()
|
|
429
429
|
await this._fixWritableDirectoryPermissions()
|
|
430
430
|
|
|
431
|
+
const typo3 = this.destinationPath(
|
|
432
|
+
'typo3/sysext/core/bin/typo3'
|
|
433
|
+
)
|
|
434
|
+
|
|
435
|
+
this.log('→ Activating razor bootstrap...')
|
|
436
|
+
|
|
437
|
+
await this.spawnCommand(
|
|
438
|
+
typo3,
|
|
439
|
+
['extension:activate', 'razorbootstrap'],
|
|
440
|
+
{
|
|
441
|
+
cwd: this.destinationRoot()
|
|
442
|
+
}
|
|
443
|
+
)
|
|
444
|
+
|
|
445
|
+
this.log('→ Updating TER extension list...')
|
|
446
|
+
|
|
447
|
+
await this.spawnCommand(
|
|
448
|
+
typo3,
|
|
449
|
+
['razorbootstrap:ter:update'],
|
|
450
|
+
{
|
|
451
|
+
cwd: this.destinationRoot()
|
|
452
|
+
}
|
|
453
|
+
)
|
|
454
|
+
|
|
455
|
+
this.log('→ Removing razor bootstrap...')
|
|
456
|
+
|
|
457
|
+
await this.spawnCommand(
|
|
458
|
+
typo3,
|
|
459
|
+
['extension:deactivate', 'razorbootstrap'],
|
|
460
|
+
{
|
|
461
|
+
cwd: this.destinationRoot()
|
|
462
|
+
}
|
|
463
|
+
)
|
|
464
|
+
|
|
465
|
+
await fs.remove(
|
|
466
|
+
this.destinationPath('typo3conf/ext/razorbootstrap')
|
|
467
|
+
)
|
|
468
|
+
|
|
469
|
+
this.log('→ Flushing TYPO3 caches...')
|
|
470
|
+
|
|
471
|
+
await this.spawnCommand(
|
|
472
|
+
typo3,
|
|
473
|
+
['cache:flush'],
|
|
474
|
+
{
|
|
475
|
+
cwd: this.destinationRoot()
|
|
476
|
+
}
|
|
477
|
+
)
|
|
478
|
+
|
|
479
|
+
this.log('→ Activating razor...')
|
|
480
|
+
|
|
481
|
+
await this.spawnCommand(
|
|
482
|
+
typo3,
|
|
483
|
+
['extension:activate', 'razor'],
|
|
484
|
+
{
|
|
485
|
+
cwd: this.destinationRoot()
|
|
486
|
+
}
|
|
487
|
+
)
|
|
488
|
+
|
|
489
|
+
const razorScript = this.destinationPath('razor.sh')
|
|
490
|
+
|
|
491
|
+
if (!await fs.pathExists(razorScript)) {
|
|
492
|
+
throw new Error(
|
|
493
|
+
'razor.sh was not created during razor installation.'
|
|
494
|
+
)
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
this.log('→ Starting razor installer...')
|
|
498
|
+
|
|
499
|
+
await this.spawnCommand(
|
|
500
|
+
'bash',
|
|
501
|
+
['./razor.sh'],
|
|
502
|
+
{
|
|
503
|
+
cwd: this.destinationRoot()
|
|
504
|
+
}
|
|
505
|
+
)
|
|
506
|
+
|
|
431
507
|
const orange = chalk.ansi256(208)
|
|
432
508
|
const petrol = chalk.ansi256(24)
|
|
433
509
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
declare(strict_types=1);
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* This file is part of the TYPO3 CMS project.
|
|
7
|
+
*
|
|
8
|
+
* It is free software; you can redistribute it and/or modify it under
|
|
9
|
+
* the terms of the GNU General Public License, either version 2
|
|
10
|
+
* of the License, or any later version.
|
|
11
|
+
*
|
|
12
|
+
* For the full copyright and license information, please read the
|
|
13
|
+
* LICENSE.txt file that was distributed with this source code.
|
|
14
|
+
*
|
|
15
|
+
* The TYPO3 project - inspiring people to share!
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
namespace RZ\Razorbootstrap\Command;
|
|
19
|
+
|
|
20
|
+
use Symfony\Component\Console\Attribute\AsCommand;
|
|
21
|
+
use Symfony\Component\Console\Command\Command;
|
|
22
|
+
use Symfony\Component\Console\Input\InputInterface;
|
|
23
|
+
use Symfony\Component\Console\Output\OutputInterface;
|
|
24
|
+
use Symfony\Component\Console\Style\SymfonyStyle;
|
|
25
|
+
use TYPO3\CMS\Core\Attribute\AsNonSchedulableCommand;
|
|
26
|
+
use TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException;
|
|
27
|
+
use TYPO3\CMS\Extensionmanager\Remote\RemoteRegistry;
|
|
28
|
+
|
|
29
|
+
#[AsCommand(
|
|
30
|
+
name: 'razorbootstrap:ter:update',
|
|
31
|
+
description: 'Updates the TYPO3 Extension Repository extension list'
|
|
32
|
+
)]
|
|
33
|
+
#[AsNonSchedulableCommand]
|
|
34
|
+
final class UpdateTerCommand extends Command
|
|
35
|
+
{
|
|
36
|
+
public function __construct(
|
|
37
|
+
private readonly RemoteRegistry $remoteRegistry
|
|
38
|
+
) {
|
|
39
|
+
parent::__construct();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
protected function execute(
|
|
43
|
+
InputInterface $input,
|
|
44
|
+
OutputInterface $output
|
|
45
|
+
): int {
|
|
46
|
+
$io = new SymfonyStyle($input, $output);
|
|
47
|
+
|
|
48
|
+
$io->text('Updating TER extension list...');
|
|
49
|
+
|
|
50
|
+
try {
|
|
51
|
+
foreach ($this->remoteRegistry->getListableRemotes() as $remote) {
|
|
52
|
+
$remote->getAvailablePackages(true);
|
|
53
|
+
}
|
|
54
|
+
} catch (ExtensionManagerException $exception) {
|
|
55
|
+
$io->error($exception->getMessage());
|
|
56
|
+
|
|
57
|
+
return Command::FAILURE;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
$io->success('TER extension list successfully updated.');
|
|
61
|
+
|
|
62
|
+
return Command::SUCCESS;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
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>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rafu1987/razorbootstrap",
|
|
3
|
+
"type": "typo3-cms-extension",
|
|
4
|
+
"description": "razor Bootstrap - Installs the complete razor framework",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"razorbootstrap"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://github.com/rafu1987/razor",
|
|
9
|
+
"support": {
|
|
10
|
+
"source": "https://github.com/rafu1987/razor",
|
|
11
|
+
"issues": "https://github.com/rafu1987/razor/issues"
|
|
12
|
+
},
|
|
13
|
+
"license": "GPL-2.0-or-later",
|
|
14
|
+
"authors": [
|
|
15
|
+
{
|
|
16
|
+
"name": "Raphael Zschorsch",
|
|
17
|
+
"role": "Developer",
|
|
18
|
+
"email": "rafu1987@gmail.com"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"require": {
|
|
22
|
+
"typo3/cms-extbase": "^14.3",
|
|
23
|
+
"typo3/cms-fluid": "^14.3",
|
|
24
|
+
"typo3/cms-core": "^14.3",
|
|
25
|
+
"php": "^8.2 || ^8.5",
|
|
26
|
+
"rafu1987/razor": "^14.3",
|
|
27
|
+
"rafu1987/razorce": "^14.3",
|
|
28
|
+
"rafu1987/razornews": "^14.3",
|
|
29
|
+
"rafu1987/razormin": "^14.3",
|
|
30
|
+
"rafu1987/razorcookieconsent": "^14.3",
|
|
31
|
+
"rafu1987/razorsite": "^14.3"
|
|
32
|
+
},
|
|
33
|
+
"extra": {
|
|
34
|
+
"typo3/cms": {
|
|
35
|
+
"extension-key": "razorbootstrap",
|
|
36
|
+
"version": "14.3.0"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
$EM_CONF[$_EXTKEY] = [
|
|
4
|
+
'title' => 'Razor Bootstrap',
|
|
5
|
+
'description' => 'Installs the complete Razor framework',
|
|
6
|
+
'category' => 'misc',
|
|
7
|
+
'author' => 'Raphael Zschorsch',
|
|
8
|
+
'author_email' => 'rafu1987@gmail.com',
|
|
9
|
+
'state' => 'stable',
|
|
10
|
+
'version' => '14.0.0',
|
|
11
|
+
'constraints' => [
|
|
12
|
+
'depends' => [
|
|
13
|
+
'php' => '8.3.0-8.99.99',
|
|
14
|
+
'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',
|
|
21
|
+
],
|
|
22
|
+
'conflicts' => [],
|
|
23
|
+
'suggests' => [],
|
|
24
|
+
],
|
|
25
|
+
'autoload' => [
|
|
26
|
+
'psr-4' => [
|
|
27
|
+
'RZ\\Razorbootstrap\\' => 'Classes',
|
|
28
|
+
],
|
|
29
|
+
],
|
|
30
|
+
];
|