# react-middleware-reducer-cli-watcher

> A CLI tool for react which auto imports components middleware and reducer files.

Latest version **1.0.2** (published 2018-11-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-middleware-reducer-cli-watcher
pnpm add react-middleware-reducer-cli-watcher
yarn add react-middleware-reducer-cli-watcher
bun add react-middleware-reducer-cli-watcher
```

Provides the command `react-watch`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-11-02 |
| First published | 2018-10-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Christopher Melville |
| Maintainers | _moaiii |

## Links

- npm: https://www.npmjs.com/package/react-middleware-reducer-cli-watcher
- npm.io page: https://npm.io/package/react-middleware-reducer-cli-watcher

## Dependencies (4)

- [exec](https://npm.io/package/exec.md) ^0.2.1
- [yargs](https://npm.io/package/yargs.md) ^12.0.2
- [chokidar](https://npm.io/package/chokidar.md) ^2.0.4
- [node-exec-promise](https://npm.io/package/node-exec-promise.md) ^1.0.2

## Recent versions

- 1.0.2 (latest) — 2018-11-02
- 1.0.1 — 2018-11-02
- 1.0.0 — 2018-10-30

## README

# React Redux Watcher ![Example module created automatically](https://s3-eu-west-1.amazonaws.com/moaiii-cv/react-icon.png) 

##### 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. 

### Output
<!-- ```$rcr --view --ExampleComp --stateful --redux```

Creates the following files in `./src/ui/views`

![Example module created automatically](https://s3-eu-west-1.amazonaws.com/moaiii-cv/Screenshot+2018-11-02+at+12.53.05.png)

```$rcr --forms --AnotherExample --stateless```

Creates the following files in `./src/ui/views`

![Example module created automatically](https://s3-eu-west-1.amazonaws.com/moaiii-cv/Screenshot+2018-11-02+at+12.57.34.png) -->

---
_Source: https://npm.io/package/react-middleware-reducer-cli-watcher · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
