Giter Club home page Giter Club logo

react-cli's Introduction

tools-react-cli

Node.js CI codecov NPM version

React CLI is a tool that automates frequent tasks during developing of React apps

Installation

As global package

npm i -g tools-react-cli

rc global command will be available after installation:

rc <command> [options]

As npx script

npx tools-react-cli <command> [options]

Usage

List of commands

rc <command> [options]

Commands:
  rc generate  Generates files based on templates                                       [aliases: g]

Options:
  --help     Show help                                                                     [boolean]
  --version  Show version number                                                           [boolean]

Generate command

rc generate

Generates files based on templates

Commands:
  rc g component  Generates component                                                   [aliases: c]

Generate component

rc g component

Generates component

Options:
      --help        Show help                                                              [boolean]
      --version     Show version number                                                    [boolean]
  -n, --name        Component name                                               [string] [required]
  -p, --path        Generation target path. Default - cwd
                     [string] [required]
  -s, --styles      Style file format to generate. Use false to not generate styles file. Default -
                    scss     [string] [required] [choices: "css", "scss", "false"] [default: "scss"]
  -t, --typescript  Pass true to generate typescript files      [boolean] [required] [default: true]
  -c, --connected   Pass true to generate redux-connected component
                                                               [boolean] [required] [default: false]

Generate component examples

  • Generate simple component Typescript/SCSS/
rc g c -n ComponentName -s scss -t
  • Generate simple component Typescript(by default)/no styles/
rc g c -n ComponentName -s false
rc g c -n ComponentName -s scss -t -c

react-cli's People

Contributors

dependabot[bot] avatar rodion-arr avatar

Watchers

 avatar  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.