0.1.0 • Published 3 years ago
@imaginelife/component-creator v0.1.0
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.jsonthat runcomponent-creator, something like...
"scripts": {
"cc": "node ./node_modules/component-creator",
}Use The Terminal
- Change directory
cdinto the directory where you'd like to put your new component: something like acomponentsdirectory - run your recently added package.json script:
npm run cc - follow the CLI & you'll end up with a new component
0.1.0
3 years ago