generator-razor 14.0.28 → 14.0.30

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
@@ -452,23 +452,13 @@ export default class extends Generator {
452
452
  }
453
453
  )
454
454
 
455
- this.log('→ Installing razor...')
456
-
457
- await this.spawnCommand(
458
- typo3,
459
- ['razorbootstrap:extension:install', 'razor'],
460
- {
461
- cwd
462
- }
463
- )
464
-
465
- this.log('→ Deactivating Razor bootstrap...')
455
+ this.log('→ Removing razor bootstrap...')
466
456
 
467
457
  await this.spawnCommand(
468
458
  typo3,
469
459
  ['extension:deactivate', 'razorbootstrap'],
470
460
  {
471
- cwd
461
+ cwd: this.destinationRoot()
472
462
  }
473
463
  )
474
464
 
@@ -476,17 +466,23 @@ export default class extends Generator {
476
466
  this.destinationPath('typo3conf/ext/razorbootstrap')
477
467
  )
478
468
 
479
- await fs.remove(
480
- this.destinationPath('typo3temp/var/cache')
481
- )
482
-
483
469
  this.log('→ Flushing TYPO3 caches...')
484
470
 
485
471
  await this.spawnCommand(
486
472
  typo3,
487
473
  ['cache:flush'],
488
474
  {
489
- cwd
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()
490
486
  }
491
487
  )
492
488
 
@@ -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>
@@ -1,24 +1,39 @@
1
1
  {
2
- "name": "rafu1987/razorbootstrap",
3
- "type": "typo3-cms-extension",
4
- "description": "Temporary Razor installation bootstrap",
5
- "license": "GPL-2.0-or-later",
6
- "require": {
7
- "typo3/cms-core": "^14.3",
8
- "typo3/cms-extensionmanager": "^14.3"
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"
9
12
  },
10
- "autoload": {
11
- "psr-4": {
12
- "RZ\\Razorbootstrap\\": "Classes/"
13
+ "license": "GPL-2.0-or-later",
14
+ "authors": [
15
+ {
16
+ "name": "Raphael Zschorsch",
17
+ "role": "Developer",
18
+ "email": "rafu1987@gmail.com"
13
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"
14
32
  },
15
33
  "extra": {
16
34
  "typo3/cms": {
17
35
  "extension-key": "razorbootstrap",
18
- "version": "14.3.0",
19
- "Package": {
20
- "providesPackages": {}
21
- }
36
+ "version": "14.3.0"
22
37
  }
23
38
  }
24
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
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-razor",
3
- "version": "14.0.28",
3
+ "version": "14.0.30",
4
4
  "description": "Yeoman generator for razor TYPO3 distribution",
5
5
  "license": "MIT",
6
6
  "main": "app/index.js",
@@ -1,87 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace RZ\Razorbootstrap\Command;
6
-
7
- use Symfony\Component\Console\Attribute\AsCommand;
8
- use Symfony\Component\Console\Command\Command;
9
- use Symfony\Component\Console\Input\InputArgument;
10
- use Symfony\Component\Console\Input\InputInterface;
11
- use Symfony\Component\Console\Output\OutputInterface;
12
- use Symfony\Component\Console\Style\SymfonyStyle;
13
- use TYPO3\CMS\Core\Attribute\AsNonSchedulableCommand;
14
- use TYPO3\CMS\Core\Core\Bootstrap;
15
- use TYPO3\CMS\Extensionmanager\Domain\Model\Extension;
16
- use TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService;
17
- use TYPO3\CMS\Extensionmanager\Utility\InstallUtility;
18
-
19
- #[AsCommand(
20
- name: 'razorbootstrap:extension:install',
21
- description: 'Installs a TYPO3 extension including its dependencies'
22
- )]
23
- #[AsNonSchedulableCommand]
24
- final class InstallExtensionCommand extends Command
25
- {
26
- public function __construct(
27
- private readonly InstallUtility $installUtility,
28
- private readonly ExtensionManagementService $extensionManagementService
29
- ) {
30
- parent::__construct();
31
- }
32
-
33
- protected function configure(): void
34
- {
35
- $this->addArgument(
36
- 'extensionKey',
37
- InputArgument::REQUIRED,
38
- 'Extension key to install'
39
- );
40
- }
41
-
42
- protected function execute(
43
- InputInterface $input,
44
- OutputInterface $output
45
- ): int {
46
- $io = new SymfonyStyle($input, $output);
47
- $extensionKey = (string)$input->getArgument('extensionKey');
48
-
49
- Bootstrap::initializeBackendAuthentication();
50
-
51
- $this->installUtility->reloadAvailableExtensions();
52
-
53
- $extension = Extension::createFromExtensionArray(
54
- $this->installUtility->enrichExtensionWithDetails(
55
- $extensionKey,
56
- false
57
- )
58
- );
59
-
60
- $result = $this->extensionManagementService
61
- ->installExtension($extension);
62
-
63
- if ($result === false) {
64
- $io->error(
65
- 'Could not install extension "' . $extensionKey . '".'
66
- );
67
-
68
- foreach (
69
- $this->extensionManagementService->getDependencyErrors() as $errors
70
- ) {
71
- foreach ($errors as $error) {
72
- $io->writeln(
73
- '<error>' . $error['message'] . '</error>'
74
- );
75
- }
76
- }
77
-
78
- return Command::FAILURE;
79
- }
80
-
81
- $io->success(
82
- 'Extension "' . $extensionKey . '" successfully installed.'
83
- );
84
-
85
- return Command::SUCCESS;
86
- }
87
- }
@@ -1,51 +0,0 @@
1
- <?php
2
-
3
- declare(strict_types=1);
4
-
5
- namespace RZ\Razorbootstrap\Command;
6
-
7
- use Symfony\Component\Console\Attribute\AsCommand;
8
- use Symfony\Component\Console\Command\Command;
9
- use Symfony\Component\Console\Input\InputInterface;
10
- use Symfony\Component\Console\Output\OutputInterface;
11
- use Symfony\Component\Console\Style\SymfonyStyle;
12
- use TYPO3\CMS\Core\Attribute\AsNonSchedulableCommand;
13
- use TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException;
14
- use TYPO3\CMS\Extensionmanager\Remote\RemoteRegistry;
15
-
16
- #[AsCommand(
17
- name: 'razorbootstrap:ter:update',
18
- description: 'Updates the TYPO3 Extension Repository extension list'
19
- )]
20
- #[AsNonSchedulableCommand]
21
- final class UpdateTerCommand extends Command
22
- {
23
- public function __construct(
24
- private readonly RemoteRegistry $remoteRegistry
25
- ) {
26
- parent::__construct();
27
- }
28
-
29
- protected function execute(
30
- InputInterface $input,
31
- OutputInterface $output
32
- ): int {
33
- $io = new SymfonyStyle($input, $output);
34
-
35
- $io->text('Updating TER extension list...');
36
-
37
- try {
38
- foreach ($this->remoteRegistry->getListableRemotes() as $remote) {
39
- $remote->getAvailablePackages(true);
40
- }
41
- } catch (ExtensionManagerException $exception) {
42
- $io->error($exception->getMessage());
43
-
44
- return Command::FAILURE;
45
- }
46
-
47
- $io->success('TER extension list successfully updated.');
48
-
49
- return Command::SUCCESS;
50
- }
51
- }
@@ -1,8 +0,0 @@
1
- services:
2
- _defaults:
3
- autowire: true
4
- autoconfigure: true
5
- public: false
6
-
7
- RZ\Razorbootstrap\:
8
- resource: '../Classes/*'