1.1.6 • Published 6 years ago

rcli-tools v1.1.6

Weekly downloads
1
License
ISC
Repository
github
Last release
6 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

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago