localgovdrupal / localgov_microsites_project
Project template for the LocalGov Drupal Microsites distribution.
Installs: 2 058
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 2
Open Issues: 2
Type:project
Requires
- composer/installers: ^1.12
- cweagans/composer-patches: ^1.7
- drupal/core-composer-scaffold: ^9.3
- drupal/core-recommended: ^9.3
- drush/drush: ^11.5
- localgovdrupal/localgov_microsites: ^2.0.0-beta1
Requires (Dev)
- brianium/paratest: ^6.3
- drupal/core-dev: ^9.3
- mglaman/phpstan-drupal: ^1.1
- phpspec/prophecy-phpunit: ^2
- phpstan/phpstan: ^1.5
- phpstan/phpstan-deprecation-rules: ^1.0
Conflicts
- 2.x-dev
- 2.0.x-dev
- 2.0.0-beta6
- 2.0.0-beta5
- 2.0.0-beta4
- 2.0.0-beta3
- 2.0.0-beta2
- 2.0.0-beta1
- 1.x-dev
- 1.0.0-alpha1
- dev-release-2.x
- dev-feature/2.x/drush-upgrade
- dev-feature/2.x/php-8.0
- dev-fix/2.x/24-enable-php-http-discovery-plugin
- dev-feature/22-lando-node-remove
- dev-feature/19-maintainers
- dev-feature/group-content-menu-repo-switch
- dev-fix/htaccess
- dev-fix/group-term-released
- dev-fix/dont-overwrite-robots-htaccss
- dev-feature/group-3.x
- dev-release-1.x
- dev-bump-profile-alpha
- dev-fix/github-workflow-update-2022-06-22
- dev-fix/8-failing-tests
- dev-feature/5-add-environment-variables-for-phpunit
- dev-feature/5-better-defaults-phpunit
- dev-feature/57-directories
- dev-feature/84-layout-paragraphs-2
- dev-feature/microsites-domains
This package is auto-updated.
Last update: 2023-03-27 14:14:26 UTC
README
This project template provides a starter kit for managing your LocalGov Drupal Microsites dependencies with Composer.
Usage
First you need to install Composer.
After that you can create the project:
composer create-project --stability beta localgovdrupal/localgov_microsites_project MY_PROJECT --no-install
Using Lando
If using Lando, you can then boot up Lando and run the site install
cd MY_PROJECT
lando start
lando composer install
lando drush si localgov_microsites
Not using Lando
If you're not using lando, you'll still need to run the composer install.
cd MY_PROJECT
composer install
drush si localgov_microsites
Runnint PHPUnit tests in Lando
The included phpunit.xml.dist file contains configuration for automatically running the LocalGov Drupal test suite.
The default .lando.dist.xml includes environment variables for:
BROWSERTEST_OUTPUT_DIRECTORY: '/app/web/sites/simpletest/browser_output' BROWSERTEST_OUTPUT_BASE_URL: 'https://localgov-micro.lndo.site'
To allow html output, manually create a directory for browser output.
mkdir web/sites/simpletest/browser_output
To run all LocalGov Drupal tests from Lando:
lando ssh phpunit
To run all the tests for a specific module:
lando ssh phpunit web/modules/contrib/localgov_my_module
Tests can be filtered using the --filter
option. To only run a specific test:
lando ssh phpunit --filter=myTestName
Maintainers
This project is currently maintained by:
- Ekes: https://www.drupal.org/u/ekes
- Finn Lewis: https://www.drupal.org/u/finn-lewis
- Stephen Cox: https://www.drupal.org/u/stephen-cox