ctidigital / magento2-configurator
此包最新版本(3.2.1)没有可用的许可信息。
使用文件保持magento的持久配置
3.2.1
2023-08-25 14:36 UTC
Requires
- firegento/fastsimpleimport: ^2.0
- symfony/yaml: ~4.0|~5.0
Requires (Dev)
- magento/magento-coding-standard: 5
- phpmd/phpmd: ^2.6
- phpunit/phpunit: ^6.2
- satooshi/php-coveralls: ^1.0
- sebastian/phpcpd: ~3.0 || ~4.0
- squizlabs/php_codesniffer: ^3.4
- dev-develop
- 3.2.1
- 3.2.0
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.1
- 0.21.1
- 0.21.0
- 0.20.0
- 0.19.6
- 0.19.5
- 0.19.4
- 0.19.3
- 0.19.1
- 0.19.0
- 0.18.0
- 0.17.1
- 0.17.0
- 0.16.0
- 0.15.3
- 0.15.2
- 0.15.1
- 0.15.0
- 0.14.2
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.1
- 0.7.0
- 0.6.0
- 0.5.6
- 0.5.1
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.0
- dev-feature/attribute_swatches
- dev-CES-984-customergroup-product-fixes
- dev-master
- dev-release/3.2.0
- dev-feature/update-php81-compatibility
- dev-use-content-type-instead-of-extension-for-remote-sources
- dev-sequence-component
- dev-compatability-2.3.4
- dev-travis-fix
- dev-customer_attributes
- dev-customer-import-improvements
- dev-tax-rule-deadlock-workaround
- dev-fix-attribute-sets-using-codes
- dev-2.1-develop
- dev-prevent-tax-rule-deadlocks
This package is auto-updated.
Last update: 2024-09-05 11:28:54 UTC
README
这是一个由CTI Digital最初创建的magento模块,用于通过文件创建和维护数据库变量。此模块旨在为magento开发者工作流程带来以下好处:
- 从头开始安装magento,并准备好基于数据库的重要配置。
- 使用您自己的版本控制系统与其他同事共享和协作配置。
- 使用您自己的版本控制系统保留配置的版本。
- 根据您正在开发的的环境分割您的配置。
如果您想了解更多关于配置器的背景信息,请观看Raj Chevli在曼彻斯特的Mage Titans上做的闪电演讲YouTube。
这是一个正在进行中的工作,绝对不适用于生产环境(也许甚至目前还不适用于开发环境)。
本地测试开发
如果您正在贡献此模块,请运行以下命令以提高与Travis CI兼容的机会。这些测试包括PHP Code Sniffer、PHP Mess Detector、PHP Copy and Paste Detector、PHP Unit。
php vendor/bin/phpcs --standard=vendor/magento/magento-coding-standard/Magento2/ruleset.xml vendor/ctidigital/magento2-configurator/Model/ vendor/ctidigital/magento2-configurator/Console/ vendor/ctidigital/magento2-configurator/Test/ vendor/ctidigital/magento2-configurator/Api/ vendor/ctidigital/magento2-configurator/Component/ vendor/ctidigital/magento2-configurator/Exception/
php vendor/bin/phpmd vendor/ctidigital/magento2-configurator/Model/,vendor/ctidigital/magento2-configurator/Console/,vendor/ctidigital/magento2-configurator/Test/,vendor/ctidigital/magento2-configurator/Api/,vendor/ctidigital/magento2-configurator/Component/,vendor/ctidigital/magento2-configurator/Exception/ text cleancode,codesize,controversial,design,naming,unusedcode
php vendor/bin/phpcpd vendor/ctidigital/magento2-configurator/Model/ vendor/ctidigital/magento2-configurator/Console vendor/ctidigital/magento2-configurator/Test/ vendor/ctidigital/magento2-configurator/Api/ vendor/ctidigital/magento2-configurator/Component/ vendor/ctidigital/magento2-configurator/Exception/
php vendor/bin/phpunit vendor/ctidigital/magento2-configurator/Test/Unit/
集成测试
- 配置您的magento集成测试环境。
- 将以下XML添加到dev/tests/integration/phpunit.xml.dist。
<testsuite name="magento2-configurator">
<directory>../../../vendor/ctidigital/magento2-configurator/Test/Integration</directory>
</testsuite>
- 您可以从正确的位置在命令行运行测试。
/dev/tests/integration$ ../../../vendor/bin/phpunit --testsuite "magento2-configurator"
- 您还可以将magento PHP开发者工具添加到您的路径,这样您就不需要指定PHPUnit的位置。
export PATH=$PATH:/var/www/magento2/vendor/bin
单元测试
如果您正在开发新的组件,请确保您有相应的单元测试,它扩展了ComponentAbstractTestCase
,这样就可以测试您的组件是否具有所需的功能。同时,也请包含与您的组件一起工作的示例文件。
Travis
我们还使用Travis CI来自动化测试过程的一部分(我们仍在寻找添加更多内容的方法!)。它测试以下内容:
- CodeSniffer
- MessDetector
- 复制粘贴检测
- 单元测试
- 运行配置器(我们旨在在这些版本上运行它)
- 最新的3个次要版本
- 最新的发布候选版(允许失败)
入门
- 在
<mage_root>/app/etc/
中创建一个master.yaml
文件。(见Samples/master.yaml
) - 启用模块
CtiDigital_Configurator
、FireGento_FastSimpleImport
。 - 运行
bin/magento configurator:run --env="<environment>"
使用
- 列出可用组件
bin/magento configurator:list
- 运行单个组件
bin/magento configurator:run --env="<environment>" --component="config"
- 额外的日志
bin/magento configurator:run --env="<environment>" -v
组件要做的路线图
许可
MIT