/cube-component

bootstrap react components with community defined templates

Primary LanguageJavaScript

Installation

Using yarn

$ yarn add cube-component

Using npm

$ npm i cube-component

Options

--name [optional]: Component name

--template [optional]: Defined template name

Available templates

component-reselect-styled-connect

Usage

Create a component together with built in questions

$ cube-component

enter image description here

Create a component with name 'MyComponent' using the redux,reselect, styled component files structure

$ cube-component --name MyComponent --template component-reselect-styled-connect

TODO

  • Support dashed file name i.e my-cool-component.js

  • Typescript???

  • Add more templates

Contribute

read run-locally.txt file