A Node.js application to identify Magento modules requiring Hyva compatibility. Useful for you next luma to Hyvä project on Magento 2.
This tool scans your Magento project and gives you a list of modules that require Hyva compatibility, indicating how many frontend files require attention. It provides both JSON & CSV reports which can be used to plan your Hyva frontend development.
The reports will give you information such as:
- Module Name
- Relative Path
- Has Compatibility Module Installed
- JS File Count (in CSV report only)
- JS Line Count
- JS File list (in JSON report only)
- JS Files size (in JSON report only)
- PHTML File Count (in CSV report only)
- PHTML Line Count
- PHTML File list (in JSON report only)
- PHTML Files size (in JSON report only)
- Layout File Count (in CSV report only)
- Layout Line Count
- Layout File list (in JSON report only)
- Layout Files size (in JSON report only)
- Clone the repository to the root of your Magento installation
- Install dependencies:
npm --prefix hyva-compatibility-checker install
- Run the script:
npm --prefix hyva-compatibility-checker start
The script will generate a hyva-compatibility-analysis
folder with the JSON & CSV reports.
Review these reports to identify the modules that require Hyva compatibility modules.
Remember to checkout the Hyva Compatibility Module Tracker to see if there is already a Hyva compatibility modules available which can be used.
If there is no Hyva compatibility modules available, you can create either:
- create a new issue in the Hyva Compatibility Module Tracker to request a new Hyva compatibility modules.
- create a new Hyva compatibility modules yourself following the Hyvä documentation.
cd hyva-compatibility-checker
npm install
npm install -g .
Run hyva-compatibility-checker
from your Magento root directory.
From any directory run npm uninstall -g hyva-compatibility-checker