Skip to content

[FEATURE] Add AssetPublishTask for TYPO3 14.2+ - #809

Merged
simonschaufi merged 2 commits into
TYPO3:mainfrom
chrissonntag:feature/asset-publish-task
Sep 24, 2026
Merged

simonschaufi merged 2 commits into
TYPO3:mainfrom
chrissonntag:feature/asset-publish-task

Conversation

@chrissonntag

Copy link
Copy Markdown
Contributor

Hi!

Since TYPO3 14.2, extension assets are published by typo3 asset:publish
(Feature #109163).
TYPO3 runs it during composer install, but that boots TYPO3. If the build
workspace doesn't have settings.php or .env yet, publishing fails and
nothing ends up in public/_assets.

This PR adds an opt-in AssetPublishTask so you can publish on the node
instead. It follows WarmupCacheTask: it uses the core CLI via
typo3CliFileName and supports arguments and context. The default CMS
workflow isn't touched, so existing deployments behave the same.

Also in here:

  • A short docs section showing how to skip publishing in the local install
    (TYPO3_SKIP_ASSET_PUBLISH=1) and add the task instead.
  • A config/system/settings.php symlink example for TYPO3 12+, next to the
    existing LocalConfiguration.php one.

Tests pass locally on PHP 8.4, and php-cs-fixer and phpcs are clean.

PHPStan reports 16 errors on main with current dependencies. None of them
come from this PR. Most are Prophecy argument types in tests plus baseline
entries that no longer match, and one is a leftover SORT_DESC flag in
RollbackTask. sort() ignores that flag, and the code already expects
ascending order. Happy to clean that up in a separate PR if you like.

Opt-in task that runs `typo3 asset:publish` on the node. Useful when
the Composer install happens without the full TYPO3 configuration and
asset publishing has to be skipped there. The default workflow stays
untouched.
@chrissonntag
chrissonntag force-pushed the feature/asset-publish-task branch from 121b9d3 to 2240287 Compare September 24, 2026 07:33
@chrissonntag

Copy link
Copy Markdown
Contributor Author

Ready to merge.

@simonschaufi
simonschaufi marked this pull request as ready for review September 24, 2026 07:50
@simonschaufi
simonschaufi merged commit a2b1e1e into TYPO3:main Sep 24, 2026
15 of 16 checks passed
@simonschaufi

Copy link
Copy Markdown
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants