generator-razor 14.0.42 → 14.0.44
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
|
@@ -606,16 +606,6 @@ export default class extends Generator {
|
|
|
606
606
|
)
|
|
607
607
|
}
|
|
608
608
|
|
|
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
609
|
const orange = chalk.ansi256(208)
|
|
620
610
|
const petrol = chalk.ansi256(24)
|
|
621
611
|
|
|
@@ -631,6 +621,16 @@ export default class extends Generator {
|
|
|
631
621
|
this.log(petrol(
|
|
632
622
|
` ${this.props.ProjectName} was generated successfully.\n`
|
|
633
623
|
))
|
|
624
|
+
|
|
625
|
+
/*
|
|
626
|
+
* Hand over to the Razor installer.
|
|
627
|
+
*/
|
|
628
|
+
this.log('→ Starting razor installer...')
|
|
629
|
+
|
|
630
|
+
await this._runCommand(
|
|
631
|
+
'bash',
|
|
632
|
+
['./razor.sh']
|
|
633
|
+
)
|
|
634
634
|
}
|
|
635
635
|
|
|
636
636
|
async _fixProjectGroup () {
|
|
@@ -1163,8 +1163,14 @@ export default class extends Generator {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
|
|
1165
1165
|
async _setRazorConfig () {
|
|
1166
|
+
const devDomain = process.env.DEV_DOMAIN ?? ''
|
|
1167
|
+
const projectName = path.basename(this.destinationRoot())
|
|
1168
|
+
|
|
1166
1169
|
const config = {
|
|
1167
1170
|
siteName: this.props.ProjectName,
|
|
1171
|
+
localDomain: devDomain
|
|
1172
|
+
? `${projectName}.${devDomain}`
|
|
1173
|
+
: '',
|
|
1168
1174
|
user: this.props.User,
|
|
1169
1175
|
adminEmail: this.props.AdminEmail,
|
|
1170
1176
|
english: this.props.English,
|
|
@@ -29,7 +29,7 @@ use TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService;
|
|
|
29
29
|
|
|
30
30
|
#[AsCommand(
|
|
31
31
|
name: 'razorkickstart:install',
|
|
32
|
-
description: 'Activates the complete
|
|
32
|
+
description: 'Activates the complete razor framework'
|
|
33
33
|
)]
|
|
34
34
|
final class InstallCommand extends Command
|
|
35
35
|
{
|
|
@@ -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
|
|
50
|
+
$io->writeln('Preparing razor package states...');
|
|
51
51
|
|
|
52
52
|
/*
|
|
53
53
|
* Resolve the complete installation queue again.
|
|
@@ -64,7 +64,7 @@ final class InstallCommand extends Command
|
|
|
64
64
|
|
|
65
65
|
if ($dependencyErrors !== []) {
|
|
66
66
|
$io->error([
|
|
67
|
-
'
|
|
67
|
+
'razor dependencies could not be resolved.',
|
|
68
68
|
print_r($dependencyErrors, true),
|
|
69
69
|
]);
|
|
70
70
|
|
|
@@ -79,7 +79,7 @@ final class InstallCommand extends Command
|
|
|
79
79
|
|| !$this->downloadQueue->isQueueEmpty('update')
|
|
80
80
|
) {
|
|
81
81
|
$io->error(
|
|
82
|
-
'
|
|
82
|
+
'razor dependencies are not completely prepared.'
|
|
83
83
|
);
|
|
84
84
|
|
|
85
85
|
return Command::FAILURE;
|
|
@@ -90,7 +90,7 @@ final class InstallCommand extends Command
|
|
|
90
90
|
|
|
91
91
|
if ($installQueue === []) {
|
|
92
92
|
$io->error(
|
|
93
|
-
'No
|
|
93
|
+
'No razor extensions were found in the installation queue.'
|
|
94
94
|
);
|
|
95
95
|
|
|
96
96
|
return Command::FAILURE;
|
|
@@ -130,7 +130,7 @@ final class InstallCommand extends Command
|
|
|
130
130
|
ClassLoadingInformation::dumpClassLoadingInformation();
|
|
131
131
|
|
|
132
132
|
$io->success(
|
|
133
|
-
'
|
|
133
|
+
'razor package states successfully prepared.'
|
|
134
134
|
);
|
|
135
135
|
|
|
136
136
|
return Command::SUCCESS;
|
|
@@ -26,7 +26,7 @@ use TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService;
|
|
|
26
26
|
|
|
27
27
|
#[AsCommand(
|
|
28
28
|
name: 'razorkickstart:prepare',
|
|
29
|
-
description: 'Downloads all required
|
|
29
|
+
description: 'Downloads all required razor dependencies'
|
|
30
30
|
)]
|
|
31
31
|
final class PrepareCommand extends Command
|
|
32
32
|
{
|
|
@@ -62,7 +62,7 @@ final class PrepareCommand extends Command
|
|
|
62
62
|
|
|
63
63
|
if ($result === false) {
|
|
64
64
|
$io->error([
|
|
65
|
-
'
|
|
65
|
+
'razor dependencies could not be resolved.',
|
|
66
66
|
print_r(
|
|
67
67
|
$this->extensionManagementService->getDependencyErrors(),
|
|
68
68
|
true
|
|
@@ -73,7 +73,7 @@ final class PrepareCommand extends Command
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
$io->success(
|
|
76
|
-
'
|
|
76
|
+
'razor dependencies successfully prepared.'
|
|
77
77
|
);
|
|
78
78
|
|
|
79
79
|
return Command::SUCCESS;
|