定制 thunder/thunder-develop 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thunder/thunder-develop

Composer 安装命令:

composer create-project thunder/thunder-develop

包简介

Project for thunder development.

README 文档

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

统计信息

  • 总下载量: 126
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2018-02-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固