# react-redux-cli-file-structure

> cli creation for react redux boiler plate

Latest version **1.1.8** (published 2016-07-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-redux-cli-file-structure
pnpm add react-redux-cli-file-structure
yarn add react-redux-cli-file-structure
bun add react-redux-cli-file-structure
```

Provides the command `v`.

## 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.1.8 |
| Published | 2016-07-02 |
| First published | 2016-04-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | vincent de torres |
| Maintainers | detorresvc |

## Links

- npm: https://www.npmjs.com/package/react-redux-cli-file-structure
- Repository: https://github.com/geekhives/react-redux-cli-file-structure
- Issues: https://github.com/geekhives/react-redux-cli-file-structure/issues
- npm.io page: https://npm.io/package/react-redux-cli-file-structure

## Dependencies (5)

- [colors](https://npm.io/package/colors.md) ^1.1.2
- [lodash](https://npm.io/package/lodash.md) ^4.11.1
- [promise](https://npm.io/package/promise.md) ^7.1.1
- [mustache](https://npm.io/package/mustache.md) ^2.2.1
- [commander](https://npm.io/package/commander.md) ^2.9.0

## Recent versions

- 1.1.8 (latest) — 2016-07-02
- 1.1.7 — 2016-04-27
- 1.1.6 — 2016-04-27
- 1.1.5 — 2016-04-27
- 1.1.4 — 2016-04-27
- 1.1.3 — 2016-04-25
- 1.1.2 — 2016-04-25
- 1.1.1 — 2016-04-25
- 1.1.0 — 2016-04-25
- 1.0.0 — 2016-04-24

## README

# REACT REDUX CLI FILE STRUCTURE

## How to start

Installation:  
```
npm install -g react-redux-cli-file-structure

if permission denied 

sudo npm install -g react-redux-cli-file-structure
```

Usage:  
```
On you command line type without $

$v -d ~/directory_destination ModueNameShouldStudly

OR 

$v --dirdest ~/directory_destination ModueNameShouldStudly
```

Result:
```
directory_destination
	-moduenameshouldstudly
		-actions
			->index.js
		-components
		-containers
			->ModueNameShouldStudly.js
		-reducers
			->index.js
		->routes.js
		->constants.js

```

ModueNameShouldStudly.js:
```
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actions from '../actions';

class ModueNameShouldStudly extends Component {

    state = {}

    render(){

                return (
                        <div></div>
                )
        }
}

export default connect(
        state => {
                const moduenameshouldstudly = state.moduenameshouldstudly

                return {
            moduenameshouldstudly
                }
        },
        dispatch => {
                return {
                        action: bindActionCreators(actions,  dispatch)
                }
        }
)(ModueNameShouldStudly)
```

reducers.js
```
import * as c from './constants';

const initState = {}

export const moduenameshouldstudly = (state = initState, action) => {
        return state;
}
```

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