UNPKG

gulp-ccr-config-helper

Version:

Configuration helper functions. A cascading configurable gulp recipe for gulp-chef.

41 lines (30 loc) 750 B
# gulp-ccr-config-helper Configuration helper functions. A cascading configurable gulp recipe for [gulp-chef](https://github.com/gulp-cookery/gulp-chef). ## Install ``` bash $ npm install --save gulp-ccr-config-helper ``` ## API ### verify(schema, config) Vaildate the config value using given JSON schema. ## Example ``` javascript var verify = require('gulp-ccr-config-helper'); var schema = { title: 'my-plugin', description: 'my-plugin description', type: 'object' properties: { options: { type: 'object' } }, required: ['options'] }; module.exports = function (done) { verify(schema, this.config); done(); }; module.exports.schema = schema; module.exports.type = 'task'; ```