React component folder creator
Just run the script: npm run build:link
.
npm install is already included in the script.
A ready to go folder with all of the boilerplate for a react component already included ๐.
The folder will include the following files:
<componentName>.(js|tsx)
<componentName>.spec.(js|ts)
<componentName>.driver.(js|tsx)
index.(js|ts)
<componentName>.scss
I'm betting you are reading this and saying to yourself "Crap what if I am using typeScript?!", well, no worries just add the --ts flag and all the necessary changes will be made.
Follow the steps described in the "Initial steps:" section and then just write in your console crcf create <componentName>
.
The component will be created in the folder your terminal is running on, just like that .
don't forget to add the --ts flag if you are using typeScript.