component-creator
This project is intended to be an easy-to-use CLI-First react component creator.
Each component file will start by including...
-
a directory
- a javascript file
- a stylesheet file
- a unit-test file
How To Use
Create a Runnable Command
- As a suggestion, add a script to your project's
package.json
that runcomponent-creator
, something like...
"scripts": {
"cc": "node ./node_modules/component-creator",
}
Use The Terminal
- Change directory
cd
into the directory where you'd like to put your new component: something like acomponents
directory - run your recently added package.json script:
npm run cc
- follow the CLI & you'll end up with a new component