Socket
Book a DemoInstallSign in
Socket

dwilt-react-redux-generator

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dwilt-react-redux-generator

This allows you to generate React and Redux templates from the command line for your project

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

react-redux-generator

This is a CLI to generate React and Redux templates for your React or React Native project.

Installation

  • At the root of your React/React Native project, run:
yarn add dwilt-react-redux-generator -D

Run

Run from the root of your project like so:

yarn rrg

Configuration

You can include a .rrgrc file at the root of your project with the following overrides:

PropertyTypeDefaultDescription
isReactNativeProjectbooleanfalseThis boolean tells the generator whether it's a React Native project. If set to true, it will generate a styles.js file instead of a CSS file.
componentsDirectorystringsrc/componentsThis is the root path of all your components. The generator will use this as the root for all of your components.
storePathstringsrc/storeThis is location of your Redux store folder where the generator will place the reducer folder.
selectorsPathstringsrc/selectorsThis is folder where your Reselect selectors are stored.

Keywords

react

FAQs

Package last updated on 13 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts