Building assets

This page explains building assets like JavaScript and CSS files.

For the most part, the TypeScript, JavaScript and SCSS sources are contained in Build/Sources. These are compiled to target files, usually located in:

  • CSS: typo3/sysext/*/Resources/Public/Css
  • JavaScript: typo3/sysext/*/Resources/Public/JavaScript

If you make changes to the source files, you can build locally using runTests.sh:

Build/Scripts/runTests.sh -s build
Copied!

Note you can also use npm + nvm locally, if you are proficient with setting this up locally.

It is also possible to lint the files locally:

Build/Scripts/runTests.sh -s lintScss
Build/Scripts/runTests.sh -s lintTypescript
Copied!

Remember to commit the compiled files alongside any patches, they are part of the monorepo.