# generator-dm-react-redux

> Yeoman generator for React-Redux projects

Latest version **1.2.0** (published 2016-12-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install generator-dm-react-redux
pnpm add generator-dm-react-redux
yarn add generator-dm-react-redux
bun add generator-dm-react-redux
```

## 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.2.0 |
| Published | 2016-12-05 |
| First published | 2016-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Dor Mesica |
| Maintainers | dormesica |
| Keywords | React, Redux, React-Redux, yeoman-generator |

## Links

- npm: https://www.npmjs.com/package/generator-dm-react-redux
- Repository: https://github.com/dormesica/generator-dm-react-redux
- Homepage: https://github.com/dormesica/generator-dm-react-redux#readme
- Issues: https://github.com/dormesica/generator-dm-react-redux/issues
- npm.io page: https://npm.io/package/generator-dm-react-redux

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.16.6
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [yeoman-generator](https://npm.io/package/yeoman-generator.md) ^0.24.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2016-12-05
- 1.1.2 — 2016-11-27
- 1.1.1 — 2016-11-24
- 1.1.0 — 2016-11-21
- 1.0.2 — 2016-11-02
- 1.0.1 — 2016-11-01
- 1.0.0 — 2016-11-01

## README

# generator-dm-react-redux
Yeoman generator for a React-Redux project

## Installation
``` sh
npm install -g generator-dm-react-redux
```

## Usage
See [react-boilderplate](https://github.com/dormesica/react-boilerplate) for reference 
about the boilderplate this generator is based upon.

First create the folder where the project should be generated.
In this folder run:
```sh
yo dm-react-redux appname
```
This will create the boilerplate into the directory.

### Creating Components
Creates a <code>.jsx</code> file and a <code>.css</code> file 
inside a new folder under the <code>src/components</code> directory.<br>

```sh
yo dm-react-redux:component component_name [flags]
```

possible flags:
<ul>
	<li> <b>common | C</b> - place the component under the common directory (Boolean)
    <li> <b>connected | c</b> - Also contains a container that is mapped to the Redux store (Boolean)
	<li> <b>path | p</b> - Place the component at the given path relative to the components folder (String)
</ul>

### Creating Reducers
Creates a new reducer file in the <code>src/store/reducers</code> directory and 
a test file for this reducer in the <code>test</code> directory.<br>
This commands also configures the new reducer in the <code>combineReducers</code> method of Redux.

```sh
yo dm-react-redux:reducer reducer_name [flags]
```

possible flags:
<ul>
	<li> <b>no-test | N</b> - don't generate test file (Boolean)
</ul>

### Creating Redux Middleware
Creates a new Redux middleware in the <code>src/store/middleware</code> directory.<br>
This command also configures the new middleware in the <code>applyMiddleware</code> method of Redux.

```sh
yo dm-react-redux:middleware middleware_name [flags]
```

Possible flags:
<ul>
	<li><b>not-registered | N</b> - Don't register the middleware in the middleware.js file
</ul>

### Creating Test Files
Creates a new test file in the <code>test</code> directory with the extension <code>.specs.js</code><br>

```sh
yo dm-react-redux:test test_file_name
```

## Running the Project
Create a <code>dist/dunble.js</code> file by running the command:
```sh
npm run build
```

Then, run the webpack-dev-server by executing:
```sh
npm start
```

Go to <code>http://localhost:8080/</code> to view your project.
<br>

For production the the <code>NODE_ENV</code> variable to <code>production</code> in order to create
a minified version of the <code>bundle.js</code> file.

---
_Source: https://npm.io/package/generator-dm-react-redux · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
