1.2.1 • Published 4 years ago

js-structure-builder v1.2.1

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

javascript-structure-builder

A CLI for create some javascript structure like components and config files.

Getting Started

General prerequisites

You only need npm to globally install this cli.

Installing

Get the package from NPM:

npm install -g js-structure-builder

or with yarn:

yarn global add js-structure-builder

Using

Creating react component

Using the generate:rc command a react functional component will be created in src/components.

jsb generate:rc componentName

Or with the alias:

jsb grc componentName

Creating react page

Using the generate:rp command a react functional component will be created in src/pages.

jsb generate:rp pageName

Or with the alias:

jsb grp pageName

Creating a redux config file

The redux:config command will create a config file for redux in src/store/index.js.

jsb redux:config

Or with the alias:

jsb rxc 

Creating a reducer

The redux config file use a rootReducers to get all the reducers in the src/store/reducers directory, using the redux:reducer a reducer will be created.

jsb redux:reducer reducerName

Or with the alias:

jsb rxr reducerName 
1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago