thunder / thunder-develop
thunder 开发项目。
1.0.3
2019-09-10 07:08 UTC
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-09-04 11:05:38 UTC
README
要安装开发版的 Thunder 发行版,请创建 thunder-develop 项目
composer create-project thunder/thunder-develop --keep-vcs --no-install -s dev
cd thunder-develop
Ddev 环境
启动 ddev 环境以进行本地站点安装
ddev start
安装站点。由于使用了 composer merge 插件来合并发行版的依赖,如果从未运行过 composer update,则必须运行两次。如果之前已经构建了 docroot,则不需要这样做。
ddev composer update
ddev composer update
ddev drush si thunder
要在发行版上工作,请在 docroot/profiles/contrib/thunder 文件夹内工作。
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 .
运行代码风格测试
要测试发行版中的代码风格(Drupal 和 DrupalPractice),请运行
ddev composer cs
要测试某些模块,请运行
ddev composer cs docroot/modules/contrib/mymodule
您也可以运行 phpcbf
ddev composer cbf
测试
某些测试需要在 selenium 容器中包含测试样本。要复制当前样本,请运行
docker cp docroot/profiles/contrib/thunder/tests/fixtures ddev-thunder-develop-selenium-chrome:/fixtures
运行所有 Thunder 测试
ddev composer exec -- phpunit -c docroot/core docroot/profiles/contrib/thunder
运行单个测试文件(例如 ArticleSchedulerIntegrationTest.php)
ddev composer exec -- phpunit -c docroot/core --filter=ArticleSchedulerIntegrationTest docroot/profiles/contrib/thunder
运行单个测试方法(例如 CacheInvalidationTest::testMetatagsCacheInvalidation)
ddev composer exec -- phpunit -c docroot/core --filter=testEntityListCacheInvalidation docroot/profiles/contrib/thunder/modules
运行模块测试
ddev composer exec -- phpunit -c docroot/core docroot/modules/contrib/graphql