Skip to content

Development

Jeroen Vermeulen edited this page May 12, 2020 · 16 revisions

Dev Environment

cd ~/magento2
composer config repositories.mh_performance_dashboard vcs [email protected]:magehost/performance-dashboard.git
composer require --prefer-source  magehost/performance-dashboard:dev-master
php bin/magento module:enable MageHost_PerformanceDashboard
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

Before Release

cd ~/magento2
test -d magento-coding-standard || composer create-project magento/magento-coding-standard --stability=dev magento-coding-standard
composer --working-dir=magento-coding-standard update
{
    magento-coding-standard/vendor/bin/phpcbf  --standard=Magento2  vendor/magehost/performance-dashboard
    clear
    magento-coding-standard/vendor/bin/phpcs  --standard=Magento2  vendor/magehost/performance-dashboard
    printf "\e[31m%s\e[0m\n" "$( magento-coding-standard/vendor/bin/phpcs  --standard=Magento2  vendor/magehost/performance-dashboard  --severity=10)"
}

Draft and Test Release

Upload to Marketplace

Clone this wiki locally