algolia / magento2-tools
Tools for magento 2 developers
Installs: 1 934
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 54
Forks: 3
Open Issues: 0
Language:Shell
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-10-26 19:10:58 UTC
README
The perfect starting point to analyse the PHP quality of our Algolia Magento 2 extension
💡 Getting Started
First, install globally the magento2-tools
:
composer global require algolia/magento2-tools
Make sure to place Composer's system-wide vendor bin directory in your $PATH
so the magento2-tool
executable can be located by your system.
Finally, you can launch the quality tools with:
{command} path/to/magento/extension
Here is the list of available commands:
-
magento2-lint
: Runs the linter and fixes the found issues - configuration file underalgoliasearch-magento-2/.php_cs
. -
magento2-types
: Runs the type checker and displays the found issues - configuration file underalgoliasearch-magento-2/phpstan.neon
. -
magento2-php-compatibility
: Checks if your code is compatibility between multiple all php versions supported by magento. -
magento2-test
: Runs all previous commands in--dry-run
mode.
Release process
- Clear your the local repository with:
git add . && git reset --hard
- Make sure you are on the latest master branch:
git checkout master && git pull
Note: make sure that there is no breaking changes and you may use
git tag --list
to check the latest release
- Bump version in the file
bin/magento2-update
- Commit the
bin/magento2-update
with the message:git commit -m "chore: bumps version to vX.X.X"
git push
git tag vX.X.X
git push --tags
- Create a new release with the name
vX.X.X
under https://github.com/algolia/magento2-tools/releases/new.
Developers will get the new version via the
auto-update
mechanism of this tool.
📄 License
magento2-tools is an open-sourced software licensed under the MIT license.