jmakeig / redux-thunk-scaffolding

Simple code generator for Redux asynchronous thunk actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate scaffolding for asynchronous Redux actions, in the style of redux-thunk middleware.

Usage

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

About

Simple code generator for Redux asynchronous thunk actions

License:Apache License 2.0


Languages

Language:JavaScript 100.0%