
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
generator-outrigger-drupal
Advanced tools
Yeoman generator that weaves together Outrigger with other best-in-class tools for your Drupal project.
The Outrigger Cloud sub-generator is still tied to Phase2's internal Docker hosting solution. The next version will be more open.
This project helps create new Drupal projects fully outfitted with environment support, build processes, frontend tooling, and more. It operates as an umbrella Yeoman generator that asks questions, then passes the answers to multiple "child" generators that handle their own aspect of project scaffolding. As the name implies, this generator focuses on Outrigger practices, where some of the other generators in use are focused on broader industry best practices.
mkdir ~/PROJECT-NAME
cd ~/PROJECT-NAME
docker run -it --rm -v $PWD:/generated outrigger/generator
For more options check out outrigger/generator directly.
Docker-based usage is available as of v3.0.0. It is the recommended approach as updates tend to be less prone to complication.
git clone git@github.com:phase2/generator-outrigger-drupal.git
cd generator-outrigger-drupal
git checkout v4.0.0
docker-compose run --rm cli npm install
mkdir ~/path/to/empty/directory
YO_PROJECT_DIRECTORY=~/path/to/empty/directory docker-compose run --rm yo outrigger-drupal
npm install -g generator-outrigger-drupal
mkdir ~/path/to/empty/directory
cd ~/path/to/empty/directory
yo outrigger-drupal
--replay: Re-run the generator against an existing project, using previously
entered answers.--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. (Applied by default when you opt-in for the
Docker-based Outrigger Environment.)Once Yeoman has been started, you will be prompted to answer six to a dozen questions about your project. These questions are used by the generator to select templates, create variables for use in the templates, and further execute any code or customizations on top of the templated scaffolding.
Please read the output at the end of the generator run, it has instructions on next steps.
When you use this to generate a project, all your answers are recorded by Yeoman
in a .yo-rc.json file at the root of your repository. As long as you commit this
to the codebase, from then if you run the generator targeting that directory it
will use the previous answers as the defaults to every prompt. For even faster
usage, you can run yo outrigger-drupal --replay and it will automatically run
the generator without stopping to ask old questions.
If you run the generator, it will overwrite files. That's the idea in this case,
as your goal is to cherrypick good new stuff the generator provides into your
project. Run git add -p . to view each change one chunk at a time, and decide
if it makes sense to discard or keep. Feel free to ask for help.
The extensive CHANGELOG notes are intended to help guide this process.
If you have an existing project and want to retrofit it to use the scaffolding and tools this generator provides, there is no magical solution.
Read the generated TODOS.md file. Remove things as you work through mastering and running your vanilla Drupal system for the first time.
If you are not using the Docker-based development environment, you can get your
codebase built by running grunt. From there you are on your own.
If you are using the Docker-based development environment, run rig project setup
and your codebase will be built and a new site installed.
Grunt Drupal Tasks manages backend development, continuous integration, and overall project tooling for the Drupal application.
A best practice setup of GDT with a few extra goodies are provided by Yo Outrigger Drupal's use of Generator Gadget to produce the top-level Drupal application scaffolding.
[Pattern Lab Starter](Pattern Lab Starter) is used to provide an optional Drupal theme with Pattern Lab for collaborative, design-driven development.
This is set up by Generator PLS.
Grunt Drupal Tasks manages theme compilation via the Theme Scripts of GDT
so a full site compile can happen by running the project's default build task: grunt.
We integrate with Outrigger (now http://outrigger.sh) to provide a quick, consistent, container-based, local development environment that can also be used on Phase2's centralized Outrigger hosting to provide integration, testing, and other environments.
This uses a sub-generator of generator-outrigger-drupal which can be separately executed as yo outrigger-drupal:environment.
docker-compose.yml which provides Docker configuration for the "operational"
services needed to run your Drupal site locally.
build.yml which provides tailored use of the Outrigger Build container.
If you liked the Docker-based environments, you can also use our Docker-based Jenkins instance to manage your central test environments, complete with default jobs so you can start continuous integration with zero further configuration.
This uses a sub-generator of generator-outrigger-drupal which can be separately
executed as yo outrigger-drupal:cloud.
v4.0.0 (October 11, 2017)
One of the big changes in this release is the removal/deprecation of the bin/start.sh script. For a longish explanation why please check out Deprecate the start.sh script in favor of using the underlying tools #59
For more on the breaking changes associated with this release read on past the change list.
drush @none to avoid Drupal bootstrap.)cloud sub-generator.@grayside, @scottalan, @jhedstrom, @mike-potter, @febbraro, @tekante
To continue using the --replay flag with projects generated before v4, please make the following changes to your .yo-rc.json file, hidden at the root of your git repo.
useEnv with useCloud.cloudHost key set to the URL of your Docker host. (For example: ci.p2devcloud.com)Upgrade rig CLI to at least version 1.3.2.
FAQs
Yeoman Generator for Outrigger-based Drupal projects.
We found that generator-outrigger-drupal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.