Skip to content

gajus/canonical-reducer-composition-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canonical Reducer Composition Validator

Travis build status NPM version

Canonical Reducer Composition pattern component validator.

import {
    validateReducer,
    validateAction,
    validateActionName
} from 'canonical-reducer-composition-validator';

/**
 * @throws Error if input reducerDefinition is not compliant with the spec.
 */
validateReducer(reducerDefinition);

/**
 * @throws Error if action is not compliant with the spec.
 */
validateAction(action);

/**
 * @throws Error if action name is not compliant with the spec.
 */
validateActionName(actionName);

Using gulp

gulpfile.js is written using ES6. Therefore, it needs to be executed using babel-node.

babel-node ./node_modules/.bin/gulp build

About

Canonical Reducer Composition pattern component validator.

Resources

License

Stars

Watchers

Forks

Packages

No packages published