Skip to content

Latest commit

 

History

History
95 lines (62 loc) · 2.04 KB

CONTRIBUTING.md

File metadata and controls

95 lines (62 loc) · 2.04 KB

Contributing

Contributions are welcome.

You can contribute in multiple ways, for example:

  • Open issues to report bugs, make feature requests or ask questions.
  • Create pull requests to propose changes. For extensive changes, please propose change as issue first.
  • Make changes to the documentation, either by a pull request or by clicking on "Edit on GitHub" in the top right of a documentation page.
  • Help with translation on Crowdin

Crowdin

Development

A similar testing workflow to the TYPO3 core is used. However, it is currently not as extensive as the core, but the following is checked:

  1. Coding guidelines (CGL)
  2. lint
  3. phpstan
  4. unit tests
  5. functional tests

For more information, see the file .github/workflows/tests.yml and the documentation on https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Testing/ExtensionTesting.html.

CGL

Please adhere to the TYPO3 core coding Guidelines.

Use .editorconfig in this directory.

You can check for (and automatically fix) cgl violations.

Check in .github/workflows for how to run the tests, e.g. run this once. It will setup the .Build directory and create composer.lock:

Build/Scripts/runTests.sh -p 7.4 -s composerInstallMax

Use runTests.sh with the -v option (for verbose).

Check all PHP files (dry-run, do not fix):

Build/Scripts/runTests.sh -s cgl -n -v

Check and fix CGL in PHP files:

Build/Scripts/runTests.sh -s cgl -v

Run all tests

See all options:

Build/Scripts/runTests.sh -h

You can run the tests via Composer:

composer ci:check

Cleanup:

composer ci:cleanup

yarn

To build and minimize css files.

yarn install
yarn build

You can use nvm to manage your node versions, e.g.

nvm install 15.0.0
nvm use 15.0.0