Skip to content

talgat-ruby/react-generate-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple react template generator

creates sample templating for react projects

Structure

creates folder(if not specified otherwise), and component inside of it.
Uses the kebab-case for specifying folder and file names. For example:

  • home-page.js - inside will be capitalized CamelCase component name HomePage

Installation

Globally

install dependency as global module

yarn add global react-generate-template

Locally

or install locally

yarn add --dev react-generate-template

after installing add to package.json to scripts

{
  "scripts": {
    "generate": "react-generate-template"
  }
}

Use

Gloablly

react-generate-template REST_OF_COMMAND

Locally

if you set up you script as above
You can run

yarn generate REST_OF_COMMAND

REST

after that conosle shows what you need/can add

I will add possible/list of commands later.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published