bk2k / configuration-installer
配置安装程序
0.1.2
2023-08-07 09:50 UTC
Requires
- php: ^7.3 || ^8.0
- composer-plugin-api: ^1.1 || ^2.0
Requires (Dev)
- composer/composer: ^1.10 || ^2.0@dev
- friendsofphp/php-cs-fixer: ^2.16 || ^3.0@dev
- overtrue/phplint: ^2.0
- phpunit/phpunit: ^9.2
This package is auto-updated.
Last update: 2024-09-20 21:07:02 UTC
README
配置包的安装程序。
示例
- https://github.com/benjaminkott/config-commitmessage
- https://github.com/benjaminkott/config-typo3-editorconfig
- https://github.com/benjaminkott/config-typo3-stylelint
- https://github.com/benjaminkott/config-typo3-phpcsfixer
构建自己的配置包
修改你的 配置包 的 composer.json
文件。
- 确保类型设置为
project-configuration
。 - 确保在任何版本中都需要
bk2k/configuration-installer
。
{ "type": "project-configuration", "require": { "bk2k/configuration-installer": "*" } }
在你的配置包根目录中添加一个清单文件。
manifest.json
文件指导安装程序。
- 它定义了应该将哪些
files
复制到你的项目中。 - 它定义了哪些
gitignore
条目将被添加到你的项目的 .gitignore 文件中。
{ "files": { ".php_cs.dist": ".php_cs.dist" }, "gitignore": [ "/.php_cs.dist", "/.php_cs.cache" ] }