0.1.0 • Published 7 years ago
bake-component v0.1.0
🍰 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-componentCommands
bake-component
# or
bakeWill prompt you with what component to create, name and path.
Functional Component
bake functional
# or
bake fCreates 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 cCreates 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 sArguments
- 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