Target group: Contributors
Thank you for considering contributions! You can contact us with any questions.
You are welcome to help improve this guide. Just click on “Edit me on GitHub” on the top right to submit your change request.
Any problems? You miss a feature? There is an incompatibility? You have strategic input?
Please open an issue at our Github repository after you have read the documentation.
We are happy to receive pull requests.
We use one branch for each stable TYPO3 API version. This model is not followed by many extensions.
This allows us to
focus on that API only and not worry about compatibility constructs or inabilities to incorporate any new
TYPO3 feature. So absolutely no
if (TYPO3_VERSION ...) in cookieman.
Also it simplifies testing, as each version might need a different setup. As our acceptance testing boots up the corresponding TYPO3 with a bootstrap_package and introduction distribution and there are some specialities in each version combination, this just feels natural to us.
The downside is that currently TER only shows our supported version range on the list but not on the detail page.
After switching branches, you might need a
git clean -fdX -e '!.idea' to remove any ignored files which were
created by another version’s build (in this example excluding the IDE settings, .idea).
semver <https://semver.org/>. Including with composer via
dmind/cookieman: ^2.0 shall never
break any documented feature or the input or output of any function marked with @api in the code.
Be sure to shoot us an angry message if we messed up!
We usually release for all supported TYPO3 APIs at the same time and use consecutive patch versions (e.g. 2.2.3, 2.2.4, 2.2.5), each supporting one. We might deviate if feature sets change in the future.
ddev start && ddev launch will install a TYPO3 with example content and cookieman. This installs helper extensions that automatically enable a certain theme and some TypoScript setup to facilitate development. The admin user is “admin”, password “adminadmin”.
The ddev custom command ddev install-git-hooks installs CGL checkers as pre-commit hooks (only tested on Linux so far - the script runs under the container environment so good chances that this would work for other OSs as well).
To throw away the database and restart cleanly, run ddev rm -ORU && git clean -fdX -e '!.idea' && ddev start
Have a look at the
script section. This is the main entry point for any commands needed
during development. Use ddev composer from outside the container or just composer from inside.
- ddev composer cookieman:... enables an official cookieman theme. The “customtheme” shall resemble an integrator following our documentation.
- ddev composer cookieman:build generates minified JS/CSS.
- ddev composer cookieman:test runs all important tests. You do not strictly have to run tests before opening a pull request - they are also run post-commit on Github actions.
- ddev composer fix:cgl tries to fix CGL problems.
- ddev composer build:docs [+ any parameters, defaults to “makehtml”] builds documentation using the official TYPO3 docs team docker image (experimental feature, feedback is welcome). Unfortunately, the parameter --help is masked by composer. composer build:docs -- --help should work, but it doesn’t.