thunder / thunder-develop
Project for thunder development.
Installs: 120
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 1
Open Issues: 5
Type:project
Requires
- burdamagazinorg/image-derive-all: dev-master
- composer/installers: ^1.2
- cweagans/composer-patches: ^1.6.5
- drupal-composer/drupal-scaffold: ^2.5
- drupal/console: ~1.0
- drupal/core: ~8.5
- drush/drush: ~9.0
- webflo/drupal-finder: ^1.0.0
- webmozart/path-util: ^2.3
- wikimedia/composer-merge-plugin: ^1.4
- zaporylie/composer-drupal-optimizations: ^1.1
Requires (Dev)
Replaces
- drupal/custom_list: *
- drupal/ivw_integration: *
- drupal/paragraphs_features: *
- drupal/riddle_marketplace: *
- drupal/select2: *
- drupal/thunder_admin: *
- drupal/update_helper: *
- thunder/sampler: *
- thunder/testsite_builder: *
- thunder/thunder_performance_measurement: *
- 3.x-dev
- 2.x-dev
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-beta1
- 1.0.0-alpha1
- dev-use-drupalci-chromedriver
- dev-phpunit-xml
- dev-install-pcov
- dev-replace-symfony-polyfill
- dev-fix/readme-to-keep-git
- dev-add-config-profile
- dev-drush12
- dev-drupal-core-phpcs
- dev-docker-compose
- dev-feat/defaul-services.yml
- dev-fix/packages
- dev-fix/2954309-nested-paragraphs-form-styling
- dev-update-min-deps
- dev-fix/travis
- dev-use-thunder-3
- dev-phpstan-gitignore
- dev-feature/nexx
- dev-feature/ddev-default-configurations
- dev-feature/ddev
This package is auto-updated.
Last update: 2024-11-04 11:27:21 UTC
README
To install the Thunder Distribution for development create the thunder-develop project:
composer create-project thunder/thunder-develop --keep-vcs --no-install -s dev
cd thunder-develop
Ddev Environment
Start the ddev environment for local site install:
ddev start
Install the site. When composer update was never run, it has to be called twice, because of the composer merge plugin which is used to merge the distributions dependencies. This is not necesseary when the docroot was build before.:
ddev composer update
ddev composer update
ddev drush si thunder
To work on the distribution, work inside the docroot/profiles/contrib/thunder folder.
cd docroot/profiles/contrib/thunder
git checkout -b feature/new-thunder-feature # <-- this will be a branch in the distribution not the project
<make changes>
git commit .
Run code style tests
To test the code style (Drupal and DrupalPractice) in the distribution run
ddev composer cs
To test some module run
ddev composer cs docroot/modules/contrib/mymodule
You can also run phpcbf
ddev composer cbf
Testing
Some tests need test fixtures inside the selenium container. To copy the current fixtures run:
docker cp docroot/profiles/contrib/thunder/tests/fixtures ddev-thunder-develop-selenium-chrome:/fixtures
Run all Thunder tests
ddev composer exec -- phpunit -c docroot/core docroot/profiles/contrib/thunder
Run single test file (e.g. ArticleSchedulerIntegrationTest.php)
ddev composer exec -- phpunit -c docroot/core --filter=ArticleSchedulerIntegrationTest docroot/profiles/contrib/thunder
Run single test method (e.g. CacheInvalidationTest::testMetatagsCacheInvalidation)
ddev composer exec -- phpunit -c docroot/core --filter=testEntityListCacheInvalidation docroot/profiles/contrib/thunder/modules
Run module tests
ddev composer exec -- phpunit -c docroot/core docroot/modules/contrib/graphql