1.3.10 • Published 2 years ago

redux-scaffolder v1.3.10

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

Generate three redux files from CLI: "constants.js, actions.js, reducers.js"

npm npm NPM

Support.

Install

npm install -g redux-scaffolder

To generate constants, actions and reducers you can run base (alias b) command. Next CLI will ask you to write your constants.

redux base 

# alias 
redux b

Result example

Note: yours input consts will be transformed to uppercase

Options for base command:

  • -r (--read) to read consts from "constants.js" file
redux base
redux base --read

# alias
redux b
redux b -r

Otherwise you can generate "constants.js" with constants:

redux constants

# alias
redux c

Options for constants command:

  • -p (--path) to specify path/ACTION_TYPE

Then you can generate actions and reducers. Tool will read constants from "constants.js" file.

To create actions.js use actions command:

redux actions

# alias
redux a

To generate reducers.js there is reducer command:

redux reducer REDUCER_NAME

# or without name
redux reducer

# alias
redux r REDUCER_NAME
redux r
1.3.10

2 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.0.1

5 years ago