astorm / pestle

A collection of command line scripts for Magento 2 code generation, and a PHP module system for organizing command line scripts.
MIT License
533 stars 101 forks source link

Create and Register a Local Composer Module #498

Closed astorm closed 5 years ago

astorm commented 5 years ago

Add a new "magento2:generate:composer-module" command that is like magento2:generate:module, except that it generates a basic local composer module in a folder of the user's choosing. Should also add this folder's path to the local configuration (see below)

Add a new "magento2:generate:register-composer-module" command that registers a composer module. Registering a composer module means adding it's name (Packagename_Namspace) and path to a configuration file in ~/.pestle/. This will allow us to lookup where a module's local folder exists. The arguments for this command should let you just point at a folder, and the command will be smart enough to parse the composer.json or registration.php file to determine the module's name.