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.
The Web Starter Kit is a Yeoman generator developed and maintained by Forum One. It allows you to:
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.
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
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
npm ci
- install dependenciesnpm pack
- Create a tarball for testing purposesnpx -p <path to generator.tgz> -p yo -- yo web-starter
- Execute web starter with the modifications you just madeTo 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:
DEBUG=\*
DEBUG='yeoman:generator'
DEBUG='web-starter:app'
DEBUG='web-starter:*'