Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 856 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 856 Bytes

react-spawn

yarn add --dev react-spawn
# or
npm install --save-dev react-spawn

Add "scripts": { "spawn": "react-spawn" } in your package.json

Now npx spawn ComponentName will create a ComponentName directory in src/components.

Custom template files

If a .spawn-templates directory exists inside your app root it'll be used in place of default-templates.

Every occurrence of __name__ in file names or in their content will be replaced with the component name.