The Yeoman Generator for Drupal and Grunt Drupal Tasks.
Yeoman generator to scaffold a Drupal project for use with grunt-drupal-tasks.
Gadget will set up a Drupal project with the site skeleton and tools to build your project and configure your build
system with the Grunt Drupal Tasks kit.
composer.json
file that requires the latest stable Drupal, Drupal Console, and Drush.Install Node.js v4 or better either using a
package manager
like apt-get, brew, or yum or a standalone installer
Once Node.js is installed, use npm to install the generator. If you have
not used a Yeoman generator before install the yo
package as well.
Grunt Drupal Tasks requires the grunt task runner as well.
npm install -g generator-gadget grunt-cli yo
Grunt Drupal Tasks leverages a number of additional tools from outside the Node ecosystem, such as PHP and
Composer. See Grunt-Drupal-Tasks for details.
To set up a new Drupal project with Grunt Drupal Tasks using Gadget, run the following in a new directory:
yo gadget
--offline
: Will make a best effort to complete generator run, though some generated values--use-master
: Will make a point of leveraging the master version of Grunt Drupal Tasks.--skip-install
: Will skip running npm install
at the end of the generation process.--skip-readme
: Will not generate a README.md. (Useful when you’ve already hand-crafted the perfect project introduction!)--skipWelcome
: Skip opening welcome message.--skipGoodbye
: Skip closing messages.Install the dependencies:
docker-compose run --rm cli npm install
Then run the generator:
docker-compose run --rm yo gadget