GithubHelp home page GithubHelp logo

anabelatavaresloba / react_redux_generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidhu2000/react_redux_generator

0.0 0.0 0.0 150 KB

A npm script for generating all parts of react and redux web application.

Home Page: https://www.npmjs.com/package/redux-file-gen

License: MIT License

JavaScript 100.00%

react_redux_generator's Introduction

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.

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

Command Alias Function
generate g use the file generator
remove r remove the generated files
--help -h see available commands
--version -v see current package version

FileTypes

FileType Function
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

Option Alias Function
--functional -f create functional component
--no-container -nc do 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.

react_redux_generator's People

Contributors

davidhu2000 avatar rlee0525 avatar tom-ogasawara avatar andrew1007 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.