@dennisschoepf/react-gen

0.3.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @dennisschoepf/react-gen

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

7.58 kB

Total Files

13

Last publish

Collaborators

  • dennisschoepf