0.1.0 • Published 5 years ago

bake-component v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

🍰 Bake Component 🍰

A CLI for generating several types of react components.

Install

  npm i -g bake-component
  # or
  yarn global add bake-component
  # or
  npx bake-component

Commands

  bake-component
  # or
  bake

Will prompt you with what component to create, name and path.

Functional Component

  bake functional

  # or

  bake f

Creates a functional Component with the name Component in index.js

Arguments

  • name: The name of the component
  • path: Where to create this Component based on your current directory

Class Component

  bake component

  # or

  bake c

Creates a class Component with the name Component in index.js

Arguments

  • name: The name of the component
  • path: Where to create this Component based on your current directory

Styled Component

  bake styled

  # or

  bake s

Arguments

  • name: The name of the component
  • path: Where to create this Component based on your current directory

Creates a styled Component with the name Component in index.js

License

MIT - see LICENSE

0.1.0

5 years ago

0.0.1

5 years ago