bake-component
v0.1.0
Published
bake-component CLI
Downloads
3
Readme
🍰 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