Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ nbproject
.tscache
#
# Ignore composer stuff
/bin/*
/vendor/*
/index.php
/typo3/install.php
/var
#
# Ignore common TYPO3 CMS files/directories
/typo3temp/*
Expand Down
11 changes: 8 additions & 3 deletions Build/cgl/.php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@
->setFinder(
(new PhpCsFixer\Finder())
->ignoreVCSIgnored(true)
->in(__DIR__.'/../'.'../')
->exclude('.Build')
->exclude('Fixtures')
->in(__DIR__ . '/../../')
->exclude([
'.Build',
'.github',
'Build',
'var',
'Tests/Functional/Integration/Fixtures',
])
)
->setRiskyAllowed(true)
->setRules([
Expand Down
10 changes: 8 additions & 2 deletions Build/rector/rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\Config\RectorConfig;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\SafeDeclareStrictTypesRector;
use Rector\ValueObject\PhpVersion;
use Ssch\TYPO3Rector\CodeQuality\General\ExtEmConfRector;
use Ssch\TYPO3Rector\Configuration\Typo3Option;
Expand All @@ -24,7 +25,6 @@
__DIR__ . '/../../Classes',
__DIR__ . '/../../Configuration',
__DIR__ . '/../../Tests',
__DIR__ . '/../../ext_emconf.php',
])
->withPreparedSets(
deadCode: true,
Expand Down Expand Up @@ -53,8 +53,14 @@
->withImportNames(importShortClasses: false, removeUnusedImports: true)
->withSkip([
NullToStrictStringFuncCallArgRector::class,
SafeDeclareStrictTypesRector::class => [
'*ext_emconf.php',
'*/Tests/Functional/Integration/Fixtures/*/Configuration/TCA/*.php',
'*/Tests/Functional/Integration/Fixtures/*/Configuration/TCA/Overrides/*.php',
'*/Tests/Functional/Integration/Fixtures/*/Configuration/Backend/*.php',
],
FlipTypeControlToUseExclusiveTypeRector::class => [
__DIR__ . '/../../Classes/PhpParser/Printer/PrettyTypo3Printer.php',
'*/Classes/PhpParser/Printer/PrettyTypo3Printer.php',
],
'*Build/*',
'*Resources/*',
Expand Down
4 changes: 4 additions & 0 deletions Classes/Creator/Extension/ComposerJsonCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ private function getFileContent(ExtensionInformation $extensionInformation): str
],
'extra' => [
'typo3/cms' => [
'Package' => [
'providesPackages' => (object)[],
],
'extension-key' => $extensionInformation->getExtensionKey(),
'version' => $extensionInformation->getVersion(),
],
],
];
Expand Down
80 changes: 0 additions & 80 deletions Classes/Creator/Extension/ExtEmconfCreator.php

This file was deleted.

2 changes: 1 addition & 1 deletion Classes/Creator/SiteSet/SiteSettingsDefinitionCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private function getFileContent(SiteSettingsDefinitionInformation $siteSettingsD
}
$this->types->getProvidedServices();
foreach ($siteSettingsDefinitionInformation->getSettings() as $setting) {
$array = $setting->toArray();
$array = array_filter(get_object_vars($setting), fn(mixed $value): bool => $value !== null && $value !== []);

unset($array['key']);
if ($array['readonly'] === false) {
Expand Down
6 changes: 6 additions & 0 deletions Classes/Creator/Test/Environment/ComposerJsonCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ private function updateComposerJson(array $composerConfig): string

ksort($composerConfig['config']['allow-plugins']);

if (isset($composerConfig['extra']['typo3/cms']['Package']['providesPackages'])
&& $composerConfig['extra']['typo3/cms']['Package']['providesPackages'] === []
) {
$composerConfig['extra']['typo3/cms']['Package']['providesPackages'] = (object)[];
}

if (!isset($composerConfig['config']['bin-dir'])) {
$composerConfig['config']['bin-dir'] = '.Build/bin';
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TYPO3 Extension Kickstarter

`kickstarter` is a TYPO3 extension that simplifies and accelerates the creation of new TYPO3 extensions by automating file generation, controller setup, and plugin registration through easy-to-use CLI commands. With a few CLI commands, it generates essential files like `LICENSE`, `ext_emconf.php`,`composer.json`, and more. Whether starting from scratch or extending existing functionality, `kickstarter` helps streamline development.
`kickstarter` is a TYPO3 extension that simplifies and accelerates the creation of new TYPO3 extensions by automating file generation, controller setup, and plugin registration through easy-to-use CLI commands. With a few CLI commands, it generates essential files like `LICENSE`, `composer.json`, and more. Whether starting from scratch or extending existing functionality, `kickstarter` helps streamline development.

---

Expand Down
2 changes: 0 additions & 2 deletions Tests/Functional/Integration/ExtensionCreatorServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public static function extensionCreationProvider(): array
'namespaceForAutoload' => 'Vendor\\MyExtension\\',
'expectedDir' => __DIR__ . '/Fixtures/expected_extension',
'expectedFiles' => [
'ext_emconf.php',
'README.md',
],
],
Expand All @@ -116,7 +115,6 @@ public static function extensionCreationProvider(): array
'namespaceForAutoload' => 'Vendor\\MyExtension\\',
'expectedDir' => __DIR__ . '/Fixtures/extension_with_folders',
'expectedFiles' => [
'ext_emconf.php',
'README.md',
],
'createFolders' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
},
"extra": {
"typo3/cms": {
"extension-key": "my_extension"
"Package": {
"providesPackages": {}
},
"extension-key": "my_extension",
"version": "1.0.0"
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
},
"extra": {
"typo3/cms": {
"extension-key": "my_extension"
"Package": {
"providesPackages": {}
},
"extension-key": "my_extension",
"version": "1.0.0"
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
},
"extra": {
"typo3/cms": {
"extension-key": "my_extension"
"Package": {
"providesPackages": {}
},
"extension-key": "my_extension",
"version": "1.0.0"
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
},
"extra": {
"typo3/cms": {
"extension-key": "my_extension"
"Package": {
"providesPackages": {}
},
"extension-key": "my_extension",
"version": "1.0.0"
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
},
"extra": {
"typo3/cms": {
"extension-key": "my_extension"
"Package": {
"providesPackages": {}
},
"extension-key": "my_extension",
"version": "1.0.0"
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@
],
],
],
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
},
"extra": {
"typo3/cms": {
"extension-key": "my_extension"
"Package": {
"providesPackages": {}
},
"extension-key": "my_extension",
"version": "1.0.0"
}
}
}
Loading