Skip to content
Simple, intuitive boilerplate generator
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
bin
test
.gitignore
README.md
exec.js
index.js
package-lock.json
package.json

README.md

npm version Code Climate Test Coverage CircleCI

Overview

Uses the mustache templating engine to generate boilerplate. Click here for an article explaining why it was made.

Installation

npm install -g genierator

Usage

Genierators should be defined within ~/.genierators or the folder assigned to GENIERATOR_PATH

Define

react-component/  <-- Name of your genierator
  vars.js         <-- Exports a function defining variables
  template/       <-- Everything within this folder will be cloned and rendered with mustache
    {{file_name}}/
      index.js
      {{file_name}}.jsx
      {{file_name}}.css
      {{file_name}}.md
      {{file_name}}.spec.js

Generate

genierate react-component my_awesome_component --var="Some Variable Value"

my_awesome_component/
  index.js
  my_awesome_component.jsx
  my_awesome_component.css
  my_awesome_component.md
  my_awesome_component.spec.js

Vim/Nerdtree

If you want to use this library within Vim/Nerdtree, checkout nerdtree-generator-plugin

Examples

A sample genierator can be cloned from here

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.