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
thunder/thunder-develop 适用场景与选型建议
thunder/thunder-develop 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 126 次下载、GitHub Stars 达 2, 最近一次更新时间为 2018 年 02 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 thunder/thunder-develop 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 thunder/thunder-develop 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 126
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2018-02-19