-
Install Node.js v0.10.0 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 this, generator-gadget, with yo, the Yeoman command line tool and grunt-cli, the Grunt command line tool, by running:
npm install -g generator-gadget grunt-cli yo
- Drupal and some of the development tools bundled with Grunt Drupal Tasks have additional requirements, including PHP, Bundler, Composer, Ruby, and RubyGems.
To set up a new Drupal project with Grunt Drupal Tasks using Gadget, run:
yo gadget
Gadget will set up a Drupal site project with the site skeleton and tools provided by Grunt Drupal Tasks, including:
-
Installs the latest published version of Grunt Drupal Tasks. (To install the pre-release version of Grunt Drupal Tasks, run
yo gadget --use-master
.) -
Allows the user to choose between a Drupal 7 or 8 project.
-
Configures the Drush makefile with the latest core release version.
- For information on using Grunt Drupal Tasks after installing with Gadget, see the Grunt Drupal Tasks README.md.