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.git
cd file-generator
npm install
node 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