$ drush generate
Drush generate 10.3.6
Run drush generate [command]
and answer a few questions in order to write starter code to your project.
Available commands: [...]
How to create a new custom standard module with Drush Generate.
$ drush generate module-standard
$ drush gen module-standard --directory modules/custom --answers '{"name": "Custom Module for JavaScript"}'
$ drush gen module-standard --directory modules/custom \
--answers '{"name": "Custom Module for JavaScript", \
"machine_name": "javascript_custom_module", \
"description": "Custom Generated Module for JavaScript.", \
"package": "Custom", "dependencies": "", \
"install_file": "no", "libraries": "no", \
"permissions": "no", "event_subscriber": "no", \
"block_plugin": "no", "controller": "no", \
"settings_form": "no"}'
- Class: Standard.php
- Namespace: DrupalCodeGenerator\Command\Drupal_8\Module
- Path: /vendor/chi-teck/drupal-code-generator/src/Command/Drupal_8/Module/Standard.php