kmi / ddev-commands-collection
可重复使用的 DDEV 命令集合
0.2.16
2024-05-07 13:55 UTC
Requires
- composer-plugin-api: ^1.1 || ^2.0
- composer/composer: ^1.9 || ^2.0
- symfony/filesystem: *
- symfony/yaml: *
- dev-main
- 0.2.16
- 0.2.15
- 0.2.14
- 0.2.13
- 0.2.11
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-feature_default_rsync
- dev-compatibility_typo3_12
- dev-fix_init_command
- dev-fix_composer-default-bin-path
- dev-fix_composer_command_without_param
- dev-drupal-refactoring
This package is auto-updated.
Last update: 2024-09-08 14:16:37 UTC
README
DCC(DDEV 命令集合)为不同项目类型提供了一些预定义的 DDEV 命令。
该项目包含命令的自动复制和更新过程以及一些自定义选项。因此,您在本地项目 .ddev/commands
下的 DDEV 命令将始终保持更新扩展命令。
有关更多信息,请参阅附加的 README.md。
目的
DCC 的主要目标是
- 在多个项目中可重复使用的命令
- 在命令中可重复使用的功能
- 命令在用法和风格上的标准化
- 命令执行的简化与透明化
- 自动化 DCC 流程的自定义
安装
在您的 composer.json
中定义以下项目类型之一
"config": { "dcc-type": "Symfony" }
在 composer.json 中添加 post 脚本
"scripts": { "post-install-cmd": [ "Kmi\\DdevCommandsCollection\\Composer\\Scripts::updateCommands" ], "post-update-cmd": [ "Kmi\\DdevCommandsCollection\\Composer\\Scripts::updateCommands" ] }
通过 composer 从 packagist 安装
$ composer req kmi/ddev-commands-collection
将以下文件添加到您的本地项目 git 中
.ddev/ commands/ .gitignore dcc-config.sh
注意:如果您的项目结构不同于下面的示例,并且您的 composer.json
和 ddev 目录不在同一级别,您可以在您的 composer.json
中定义 ddev 目录的相对路径,如下例所示
"config": { "ddev-dir": "./../.ddev" }
影响
自动 DCC 流程会影响您的项目中的以下文件/目录(标记为 粗体)(例如项目结构)
项目/
.ddev/
commands/
web
- dcc-cc
- dcc-composer-app
- dcc-composer-deployment
- dcc-console
- dcc-init
- dcc-release
- dcc-sync
- dcc-theme
...
- 常见问题解答/
- dcc-faq-web-sync.sh
...
- 脚本/
- dcc-colors.sh
...
- .gitignore
- dcc-config.yaml
- dcc-config.sh
- README.md
...
config.yaml
...
app/
-- 应用程序目录composer.json
composer.lock
...
composer.json
-- 适用于 DCC 的适配 composer 文件composer.lock
...
有关调整的信息,请参阅附加的 README.md。