This is a simple Yeoman Generator to help speed up the
stubbing of a React
<Component />. Each component is treated as an individual Module / Package with all files being co-located including optional tests.
# Install yeoman and the generatornpm install -g yonpm install -g generator-react-up# Run the initial setup (should be run from the project root)yo react-up
Since Yeoman is kind enough to create a
generator-generator... I've made this
generator even more customizable for you.
The goal of
react-up was to reduce the boiler plate required and improve consistency. So far, this generator has saved me a ton of time, enough so that I've decided to upgrade yet again.
This generator is now much more customizable. You can easily create mappings and exist the current templates to fit your particular needs.
# Pure functionyo react-up <ComponentName># React Componentyo react-up <ComponentName> class# Test fileyo react-up <name> test# Setup (can be run at anytime)yo react-up:setup
To create or modify existing methods available, simply update the
mappings.js within your local template folder.
Apache-2.0 © Matthew D. Shelley