lore-generate-action

Generates a new action in src/actions

generate action

CLI command to add an Action to your project.

Usage

lore generate action [action-name]

Example

lore generate action example

The command above will generate a file located at src/actions/example.js that looks like this:

export default function(params) {
  return function(dispatch) {
    // return dispatch({
    //   type: 'ACTION_NAME',
    //   payload: {}
    // });
  };
};