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

Support composer.json generating for an empty module #342

Open eralaz opened 6 years ago

eralaz commented 6 years ago

magento2:generate:module - generates an empty module without module's composer.json.

astorm commented 6 years ago

@larylaz We're open to doing this -- do you have an example of a complete compose.json file or thoughts on which of the many fields should be populated?

eralaz commented 6 years ago

Suggest composer.json like this { "name": "namespace/module-name", "description": "some desc", "type": "magento2-module", "require": { "php": "^7.1.0", "magento/framework": "^101.0.0" }, "license": [ "OSL-3.0", "AFL-3.0" ], "autoload": { "files": ["registration.php"], "psr-4": { "Namespace\\ModuleName\\": "" } } }