New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

redux-file-gen

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-file-gen

Generates necessary files for react-redux application

1.2.40
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

React-Redux File Generator

npm version downloads license Build Status CircleCI

Code Triagers Badge dependencies Status devDependencies Status

This generator helps to create the necessary files for a react-redux application. It follows the file structure below. The frontend folder is stored at the root directory of the application.

Sponsor

Installation

npm install -g redux-file-gen

In order to create the terminal command redux, this package needs to be installed globally.

Usage

redux [command] [fileType] [options]

File structure

frontend
  |- actions
    |- <actionName>_actions.js
  |- components
    |- <componentName>
      |- <componentName>.jsx
      |- index.jsx
    |- app.jsx
    |- root.jsx
  |- reducers
    |- root_reducer.js
    |- <reducerName>_reducer.js
  |- store
    |- store.js
  |- util
    |- <utilName>_util.js
  |- <projectName>.jsx

Commands

CommandAliasFunction
generateguse the file generator
removerremove the generated files
--help-hsee available commands
--version-vsee current package version

FileTypes

FileTypeFunction
base <projectName>generate app.jsx, root.jsx, <projectName>.jsx, and store.js
action <name> [action1] [action2] ...generate <name>_actions.js with specified actions
component <name> [options]generate <name>.jsx and <name>_container.jsx
reducer <name> [action1] [action2] ...generate <name>_reducer.js
util <name> [util1] [util2] ...generate <name>_util.js with specified utils

Options

OptionAliasFunction
--functional-fcreate functional component
--no-container-ncdo not create component container

For more details regard different types of files

Version notes

To see what features are added during each update, click here

Contributing

To request a feature or report an issue, click here.

Keywords

reactjs

FAQs

Package last updated on 28 Sep 2017

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