Skip to content

Latest commit

 

History

History
80 lines (57 loc) · 2.74 KB

README.dist.md

File metadata and controls

80 lines (57 loc) · 2.74 KB

Yourproject logo

Your Extension

GitHub Issues GitHub Pull Requests Build, test and deploy CircleCI GitHub release (latest by date) LICENSE Renovate

Drupal 10


Few lines describing your project.

Features

  • Your first feature as a list item
  • Your second feature as a list item
  • Your third feature as a list item

Local development

Provided that you have PHP installed locally, you can develop an extension using the provided scripts.

Build

Run .devtools/assemble.sh (or ahoy assemble if Ahoy is installed) to start inbuilt PHP server locally and run the same commands as in CI, plus installing a site and your extension automatically.

Code linting

Run tools individually (or ahoy lint to run all tools if Ahoy is installed) to lint your code according to the Drupal coding standards.

cd build

vendor/bin/phpcs
vendor/bin/phpstan
vendor/bin/rector --clear-cache --dry-run
vendor/bin/phpmd . text phpmd.xml
vendor/bin/twig-cs-fixer

Tests

Run .devtools/test.sh (or ahoy test if Ahoy is installed) to run all test for your extension.

Browsing SQLite database

To browse the contents of created SQLite database (located at /tmp/site_[EXTENSION_NAME].sqlite), use DB Browser for SQLite.