1.1.6 • Published 5 years ago

rcli-tools v1.1.6

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

rcli-tools

rcli-tools is a basic cli to generate a react component stateless or statefull

Install:

npm i rcli-tools -g

Command

rcli -cp -f [componentName]

  • -cp : place your component in src/components/componentName"
  • -ct : place your component in src/containers/componentName"
  • -f : statefull
  • -l : stateless

For exemple you can place your Component in MyPackages folder

rcli MyPackages -f Button

create a component stateless

rcli -cp -l Button

create a component statefull

rcli -cp -f Button

button

Button.js

import React, { Component } from 'react'
import './Button.css'

class Button extends Component {
    render() {
        return (
           <div>
              Button
           </div>
    )
  }
}
export default Button

index.js

export {default} from "./Button"
1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago