定制 drupalwxt/wxt-project 二次开发

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

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

drupalwxt/wxt-project

Composer 安装命令:

composer create-project drupalwxt/wxt-project

包简介

Project template for Drupal 10 sites built with the WxT distribution.

README 文档

README

Build Status

An composer project template generator for the Drupal WxT distribution.

Note: Please consult the README.md file in the Drupal WxT repository for up-to-date information.

Requirements

Dependencies

The composer.json file calls the following dependencies:

The Drupal WxT distribution is a web content management system which assists in building and maintaining innovative Web sites that are accessible, usable, and interoperable.

This distribution is open source software and free for use by departments and external Web communities. This distribution integrates extensively with the WET-BOEW jQuery Framework for improved accessible markup.

Get Started

The following command is all you need to get started:

composer create-project drupalwxt/wxt-project:5.4.5 <site-name>

Note: For development you may also specify a branch using drupalwxt/wxt-project:5.4.x-dev.

You can see a working example of a fully generated Composer Project Template over at:

Where the following is the command that was used for the initial generation:

composer create-project drupalwxt/wxt-project:5.4.5 site-wxt

Note: Remember to keep the composer.json and composer.lock files that exist above docroot in source control as they are controlling your dependencies.

Maintenance

List of common commands are as follows:

Task Composer
Installing a contrib project (latest version) composer require drupal/PROJECT
Installing a contrib project (specific version) composer require drupal/PROJECT:1.0.0-beta5
Updating all projects including Drupal Core composer update
Updating a single contrib project composer update drupal/PROJECT_NAME
Updating Drupal Core composer update drupal/core

Note: Composer is a dependency manager and helps us keep track of what code and at what version our application relies on so that it always get installed the right way on every copy of that application.

Specifying a version

A specific version can be specified from the cli:

composer require drupal/<modulename>:<version>

However please note if you specify a branch, such as 1.x you must add -dev to the end of the version:

composer require drupal/token:1.x-dev

Source Control

Taking a look at the .gitignore file, you will discover that certain directories, including all those directories containing contributed projects, are excluded from source control which is by design.

Note: Unlike Drush in a Composer derived project you should never commit your install dependencies to source control.

Composer will create composer.lock file, which is a list of dependencies that were installed, and in which versions.

Note: In general you should always commit your composer.lock file to source control so that others via a quick composer install can have everything installed along with the correct versions specified in the composer.lock file.

How to update Drupal Core?

Please don't add drupal/core to your project's composer.json since WxT manages Drupal Core for you along with the series of patches on top of it.

WxT's minor versions will always correspond to Drupal Core's. For example, drupalwxt/wxt:~4.2.0 will require Drupal Core 9.2.x and drupalwxt/wxt:~4.1.0 will require Drupal Core 9.1.x.

When you need to update Drupal Core as an example from 9.1.x to 9.2.x, all you would do is change your requirement for drupalwxt/wxt in your composer.json file:

composer require --no-update drupalwxt/wxt:~4.2.0
composer update

Compatibility table

drupalwxt/wxt version Drupal Core version Drush version
~4.2.0 9.2.x >=9.7
~4.1.0 9.1.x >=9.7
~4.0.0 8.8.x+ >=9.7

Acknowledgements

Extended with code and lessons learned by the Acquia Team over at Lightning and BLT.

drupalwxt/wxt-project 适用场景与选型建议

drupalwxt/wxt-project 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.02k 次下载、GitHub Stars 达 9, 最近一次更新时间为 2016 年 11 月 14 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 drupalwxt/wxt-project 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 drupalwxt/wxt-project 我们能提供哪些服务?
定制开发 / 二次开发

基于 drupalwxt/wxt-project 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 5.02k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 17
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2016-11-14