Socket
Socket
Sign inDemoInstall

generators-js

Package Overview
Dependencies
220
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    generators-js

helpful generators for javascript projects


Version published
Maintainers
1
Install size
20.0 MB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 23 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc