Skip to content

Pispros/react-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REACT TOOLS

Installation

sudo bash install.sh

Don't worry, no backdoor...

Usage

Syntax: react-ninjamer-tools <option> <element_name> [<element_name>]

Attention: Make sure you are in your root folder and you do not have unsaved code in files you want to modify with this tool!

Examples

First init by creating the right folder structure

react-ninjamer-tools --init

Generate Counter Page

react-ninjamer-tools -p CounterPage

Generate Counter Component

react-ninjamer-tools -c CounterComponent

Options

Option Description
--init Initialize ninjamer-tools in your project! It comes with react-redux structure
-c Generate a component
-r Generate a reducer
-p Generate a page
-const Generate a constant file
-a Generate an actions file
-i Import component in a page. Usage: -i component_name page_name

Note: For speed & fast development while using Redux, please give the same name to {constant, action & reducer} files.

Have a good time hacking, my ninja!

About

A simple way to generate react components, pages, ... with a single command and even use redux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published