@dennisschoepf/react-gen
A generator for react components. Generates .test (Jest), .stories (Storybook) and .mock-file.
Last updated a year ago by dennisschoepf .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @dennisschoepf/react-gen 
SYNC missed versions from official npm registry.

react-gen

Prerequisites

Follow the instructions to install the following packages:

Installation & Usage

$ npm i -g @dennisschoepf/react-gen
$ react-gen

or just use it with

$ npx @dennisschoepf/react-gen

You then will be asked to provide a name for your component and be able to choose from a number of templates.

Options

Currently there are no additional options supported.

Configuration

Currently you have to fork the project to make modifications. In the future you will be able to configure your own templates.

To-Do

  • [X] Return promise from createFile operation
  • [X] Parallelize createFile operations with Promise.all([])
  • [ ] Implement ability to pass component name and template directly through options
  • [ ] Refactor generator and getTemplate function to allow user-defined templates
  • [ ] Implement config file for easier configuration of templates
  • [ ] Document prerequisite instructions directly in readme
  • [ ] Add template for styleguidist .md file
  • [ ] Handle error messages in a user friendly way

PR's are welcome.

Current Tags

  • 0.3.0                                ...           latest (a year ago)

3 Versions

  • 0.3.0                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 4
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |