Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.33 KB

internals.md

File metadata and controls

65 lines (41 loc) · 1.33 KB

Internals

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

Mutation testing

The package tests are checked with Infection mutation framework. To run it:

./vendor/bin/infection

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm

Code style

Use Rector to make codebase follow some specific rules or use either newest or any specific version of PHP:

./vendor/bin/rector

Dependencies

This package uses composer-require-checker to check if all dependencies are correctly defined in composer.json. To run the checker, execute the following command:

./vendor/bin/composer-require-checker

Themes' preview

This package ships with the demo for built-in themes featuring all available fields.

Prerequisites:

  • Docker.

Generating HTML files:

cd themes-preview
make

The generated files will be available at the following paths:

  • themes-preview/bootstrap5/bootstrap5-horizontal.html;
  • themes-preview/bootstrap5/bootstrap5-vertical.html;

Use the interner browser of your choice to view them.