A simple program that generates the necesarry files for a new React component:
tsx,
test.tsx,
less
It also writes some boilerplate code to each file.
Run steps:
git clone https://github.com/DZwell/file-generator.gitcd file-generatornpm installnode fileGenerator.js [NAME OF YOUR COMPONENT]
- Options:
--parent-- Writes to the parent levelindex.js--sfc-- Creates a stateless functional component--no-content-- Creates empty files