SpencerCDixon / redux-cli

An opinionated CLI for building redux/react apps quicker
882 stars 63 forks source link

2.0 default blueprints #114

Open anithri opened 7 years ago

anithri commented 7 years ago

Lets talk ideas for default blueprints.

The are the current ones, they'll need to be updated some. for instance PropTypes moved to it's own package.

These are related to each other, and may belong in a blueprints-redux package.

anithri commented 7 years ago
jamesr73 commented 7 years ago

I might argue that the core be restricted to:

blueprint blueprintrc blueprint-module

And a companion module for defaults, that could auto install core if it was installed, would provide the base react/redux blueprints.

It's worth considering renaming the existing defaults such as smart and dumb to make them sit well in a larger ecosystem of shared blueprints. Something like:

smart => redux-connected dumb => react-component form => redux-form

They could always be shipped with aliases that retain access to the smart & dumb names. #110 provides the ability for users to assign aliases to any blueprint in the rc file, so they are easy to customise. (aliases in rc always override aliases in the blueprints)

Differences like stateless, stateful, life-cycle methods could be implemented as distinct blueprints or by using options on a smaller set of blueprints.

anithri commented 7 years ago

I don't mind having the react specific "default" set of blueprints in an external package. But I think it's really important to have a set of usable blueprints to show the user the first time they try it. And that those default blueprints collectively demonstrate all of the abilities of the system. But I'm totally behind keeping those in a separate package.

anithri commented 7 years ago

And I think we should try and have a couple of different default packs, would hate to have user not use it because they thought it for a specific framework