algolia / magento2-tools
magento 2 开发者工具
v0.3.1
2022-05-26 14:21 UTC
Requires
- dev-master
- v0.3.1
- v0.3.0
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-update/php-compatability-path
- dev-update/phpcompatibility-update
- dev-update/tag.0.2.9
- dev-update/magento-tool-phpcompatibility-update
- dev-chores/remove-phpstan
This package is auto-updated.
Last update: 2024-08-26 18:46:39 UTC
README
分析我们 Algolia Magento 2 扩展的 PHP 质量的完美起点
💡 开始使用
首先,全局安装 magento2-tools
composer global require algolia/magento2-tools
确保将 Composer 的系统全局 vendor bin 目录放置在您的 $PATH
中,以便系统可以定位到 magento2-tool
可执行文件。
最后,您可以使用以下命令启动质量工具
{command} path/to/magento/extension
以下是可以使用的命令列表
-
magento2-lint
: 运行代码检查器并修复找到的问题 - 配置文件位于algoliasearch-magento-2/.php_cs
。 -
magento2-types
: 运行类型检查器并显示找到的问题 - 配置文件位于algoliasearch-magento-2/phpstan.neon
。 -
magento2-php-compatibility
: 检查您的代码是否与 Magento 支持的所有 PHP 版本兼容。 -
magento2-test
: 以--dry-run
模式运行所有之前的命令。
发布过程
- 使用以下命令清除本地存储库:
git add . && git reset --hard
- 确保您位于最新的 master 分支:
git checkout master && git pull
注意:请确保没有破坏性的更改,并且您可以使用
git tag --list
检查最新发布版本
- 在文件
bin/magento2-update
中提升版本 - 使用以下消息提交
bin/magento2-update
:git commit -m "chore: bumps version to vX.X.X"
git push
git tag vX.X.X
git push --tags
- 在 https://github.com/algolia/magento2-tools/releases/new 下创建名为
vX.X.X
的新发布版本。
开发者将通过该工具的
auto-update
机制获取新版本。
📄 许可证
magento2-tools 是一个开源软件,受 MIT 许可证 许可。