Generate scaffolding for asynchronous Redux actions, in the style of redux-thunk middleware.
Usage:
./thunk verb noun
For example, “fetch” and “bone” will result in a fetchBone(bone)
action creator and a BONE_FETCH_RECEIPT constant, among others.
Use lowerCamelCase for compound words, such as “dogBone”.
Typically you’d pipe stdout to your clipboard and paste into
where your actions are stored.
./thunk fetch bone | pbcopy # OS X
./thunk fetch bone >> my-actions.js