0.0.10 • Published 5 years ago
react-spawn v0.0.10
react-spawn
yarn add --dev react-spawn
# or
npm install --save-dev react-spawnAdd "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.