node package manager

brm

Boilermaker

A generator for creating projects and various components, designed with the Boiler Room stack: Boiler Room Builder and Boiler Room Runner. Boilermaker uses our standard toolchain but cleanly excludes the parts that your project doesn't need, leaving you to focus on writing the code that matters.

In other words, where Boiler Room got you from zero to dev, Boilermaker gets you from zero to :shipit:.

Install

NPMers

npm i brm -g

Yarners

yarn global add brm

Usage

Everything begins with running brm create from the root directory of your project.

Project

This will take you through a sequence of questions for customising your project, and then build out a project based on your answers. Install your dependencies, run yarn start, and you're set.

Repo Creation

When creating a project, Boilermaker will offer to create a repository for you as well. In order to do this, a GitHub Personal Access Token is required, with the repo scope enabled. This token must be available under the BRM_GITHUB_API_TOKEN environment variable.

Stateless Component

After answering the questions a component will be created, along with any necessary extra files, based on your answers.

Action & Reducer

After answering the questions a store directory will be created where you selected, containing the Redux action and reducer. If a source/store/index.js file is found, it will be modified to include the new reducer.

The default action created includes a basic (invalid) GET request to a URL. Make sure you update this to what you need!