forumone / generator-web-starter

Yeoman generator for the Web Starter Kit
https://www.npmjs.com/package/generator-web-starter
MIT License
8 stars 5 forks source link

Note: at the time of this writing Forum One has switched to DDev for local development. This repo is no longer being used or maintained and you should reference either https://github.com/forumone/drupal-project or https://github.com/forumone/wordpress-project to start a new project.

generator-web-starter

The Web Starter Kit is a Yeoman generator developed and maintained by Forum One. It allows you to:

  1. Create a container-based project using Docker Compose or a React SPA using Webpack.
  2. Automatically install Drupal, WordPress, and Gesso.
  3. Add deployment utilities like Capistrano.

Installing

As of generator-web-starter 2.0, we no longer recommend installing the generator directly. Instead, install forumone-cli, which ensures that the generator is always up to date.

Using generator-web-starter

The command f1 new can be used to generate a new project in a freshly-created directory, and f1 init can be used to create a project in an existing directory.

After installing, navigate to the directory that will contain the new project and run:

f1 init

One-off runs with npx

This command will temporarily install yo - the Yeoman CLI - and generator-web-starter to start a project. It can be used in situations where installation of forumone-cli is not desired:

npx --ignore-existing -p yo -p generator-web-starter yo web-starter

Enhancing this project / Setup instructions

Debugging

To support easier debugging, verbose logging may be enabled during execution using the logging mechanism built into Yeoman by default. Logging for any specified generator may be done by setting various values into the DEBUG environment variable before execution.

For all logging:

export DEBUG=\*

For more targeted debugging within a given generator or sub-generator other values may be set including: