2017 © Pedro Peláez
 

library magento2-grumphp-conventions-checker

Magento2 Grumphp Conventions Checker

image

jalogut/magento2-grumphp-conventions-checker

Magento2 Grumphp Conventions Checker

  • Wednesday, June 13, 2018
  • by jalogut
  • Repository
  • 3 Watchers
  • 2 Stars
  • 290 Installations
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 1833 % Grown

The README.md

Magento 2 Grumphp Conventions Checker

Installation

Project

composer require --dev "jalogut/magento2-grumphp-conventions-checker:^2.2"
  • Create grumphp.yml file in the root folder with the following content:
parameters:
    magento_dir: <magento_dir>
    vendor_dir: <vendor_dir>
imports:
    - { resource: <vendor_dir>/jalogut/magento2-grumphp-conventions-checker/magento2-project-grumphp.yml }
  • Add the following scripts in your composer.json
  "scripts": {
    "grumphpInitProject": "[ ! -e bin/grumphp ] || [ ! -e <vendor_dir>/jalogut/magento2-grumphp-conventions-checker ] || bin/grumphp git:init",
    "grumphpInitModules": "[ ! -e bin/grumphp ] || [ ! -e <vendor_dir>/jalogut/magento2-grumphp-conventions-checker ] || find <vendor_dir>/<company_vendor_name>/* -type f -name grumphp.yml -maxdepth 1 -exec dirname {} \\; | xargs -I{} bash -c \"cd '{}' && ../../../../bin/grumphp git:init\"",
    "pre-autoload-dump": [
        "mkdir -p <magento_dir>/app/etc && cp <vendor_dir>/magento/magento2-base/app/etc/NonComposerComponentRegistration.php <magento_dir>/app/etc/NonComposerComponentRegistration.php"
    ],
    "post-install-cmd": [
      "@grumphpInitProject",
      "@grumphpInitModules"
    ],
    "post-update-cmd": [
      "@grumphpInitProject",
      "@grumphpInitModules"
    ]
  }

NOTE: replace <vendor_dir>, <company_vendor_name> and <magento_dir> according to your configuration, (*1)

Magento Common Module

  • Create grumphp.yml file in the root folder with the following content:
parameters:
    magento_dir: <magento_dir>
    vendor_dir: <vendor_dir>
imports:
    - { resource: ../../jalogut/magento2-grumphp-conventions-checker/magento2-module-grumphp.yml }

NOTE: replace <vendor_dir> and <magento_dir> according to your configuration, (*2)

Prerequisites

  • MAGENTO >= 2.2.2

Developers

Licence

GNU General Public License, version 3 (GPLv3), (*3)

(c) Juan Alonso juan.jalogut@gmail.com, (*4)

The Versions

13/06 2018

dev-master

9999999-dev

Magento2 Grumphp Conventions Checker

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Juan Alonso

13/06 2018

2.2.2

2.2.2.0

Magento2 Grumphp Conventions Checker

  Sources   Download

GPL-3.0

The Requires

 

by Juan Alonso

08/03 2018

2.2

2.2.0.0

Magento2 Grumphp Conventions Checker

  Sources   Download

GPL-3.0

The Development Requires

by Juan Alonso