This is a Yeoman generator plugin used by Reaction Commerce developers. The main generator creates a new project. There are also subgenerators for creating a new NPM package project and for quickly adding GraphQL files to the main Reaction project.
First, globally install Yeoman and generator-reaction using npm (we assume you have pre-installed node.js).
npm install -g yo generator-reaction
If you are adding or modifying generators in this package, you can test them prior to publishing by running npm link
in the generator project's root directory to make the template available globally on your system.
npm link
mkdir project-name
cd project-name
yo reaction
mkdir package-name
cd package-name
yo reaction:npm
yo reaction:graphql
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
To ensure that all contributors follow the correct message convention, each time you commit your message will be validated with the commitlint package, enabled by the husky Git hooks manager.
Examples of commit messages: https://github.com/semantic-release/semantic-release
The generator-reaction
package is automatically published by CI when commits are merged or pushed to the master
branch. This is done using semantic-release, which also determines version bumps based on conventional Git commit messages.
GPL-3.0 © Reaction Commerce, Inc.