generators-js

0.2.6 • Public • Published

JS Generators

A Suite of generators that are helpful for React projects.

These are what I use in my projects so they make assumptions about file structure and dependencies. I likely will not spend time making this something that will work for any project, so feel free to fork and tweak it to fit your needs.

TODO

  • support parsing editor output in reducers and prompting to create state setters if they don't exist. e.g. if the output looks like return state.setSomeSetter(arg1, arg2); look at the state model for setSomeSetter if it isn't found, prompt to create it, passing in arg1, arg2

  • look at the main index file an implement all generators

  • generators should be done in such a way so that they can be chained, e.g. generating an action should also add a test for it

Generators

Redux:

  • modules *
  • actions *
  • reducer *
  • selectors

Tests:

  • components (stateless, stateful, connected)
  • actions *
  • reducers
  • selectors
  • model
  • general

Components:

  • stateless
  • stateful
  • connected

Other:

  • enum
  • model
  • provider
  • screen

Package Sidebar

Install

npm i generators-js

Weekly Downloads

0

Version

0.2.6

License

MIT

Unpacked Size

97.7 kB

Total Files

96

Last publish

Collaborators

  • andrewg