react-middleware-reducer-cli-watcher
v1.0.2
Published
A CLI tool for react which auto imports components middleware and reducer files.
Downloads
5
Readme
React Redux Watcher
Watch for changes in react components and add to the redux store automatically
Purpose
This tool can run in your start script where it will look for the creation or deletion of redux files and automatically import them to your store.
The aim is reducer the amount of configuration time needed in development, to get up and runnning quickly and remove architectural consideration when in a creative development flow.
Considerations
Currently the tool by default looks for changes in .middleware.js and .reducer files in ./src
Useage
Install
$npm i -g react-middleware-reducer-cli-watcher
Once installed globally you have access to the CLI command $react-watch
.
An example command would be
$react-watch --src=./src/wherever
A watcher will begin and once you create or delete a middleware or reducer file the tool will update the imports in your store automatically.