Name: generator-drupal
Owner: Inuits
Description: A Yeoman generator to generate Drupal projects
Created: 2015-03-09 21:40:11.0
Updated: 2015-03-09 21:40:55.0
Pushed: 2015-03-09 21:40:55.0
Homepage: null
Size: 119
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This project is the Yeoman generator we use at Inuits to quickly generate the new Drupal projects. It generates the Makefiles we use to build our projects using drush make
, the basic installation profile, the theme and the base feature.
First install Yeoman, if you have not yet done so.
npm install -g yo
Then clone this repository
clone git@github.com:Inuits/generator-drupal.git
Finally link it as a npm module
enerator-drupal
npm link
To create and setup a project using this generator we follow a few steps. First we generate the basic project structure. Then we build the entire Drupal tree using drush make
. Then you need to create your configuration (the settings.php file). Finally you can install the project using your newly generated installation profile.
So let's do this. First run yo
in an empty folder where you want to generate a project:
rupal
After answering some questions regarding the project name and readable project name, you are now ready to download Drupal core and some contrib-modules. To do this:
Then it's time to generate the configuration. Each developer who will work on the project will have to do this.
rupal:config
Finally it's time to install the Drupal site. As you will be developing the site, let's also enable some development modules which will not be enabled on your staging/production servers.
devinstall
The generated Makefile
has some different commands. Here are the most useful ones:
make
: By default the Makefile will completely rebuild your Drupal, using drush make
make install
: Install your Drupal site using the installation profilemake dev
: Enable development modules and additional configuration for use during development. Note that each developer can further customize these to his personal preferences by writing a Makefile.custom
file (see Makefile.custom.sample
for an example)make devinstall
: combine the install
and dev
stepsThis Yeoman Drupal Generator is licensed under the MIT license.
Copyright (c) 2015 Inuits, Jeroen Budts