JSPM

gulp-ccr-config-helper

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q16270F
  • License MIT

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

Package Exports

  • gulp-ccr-config-helper

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-ccr-config-helper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-ccr-config-helper

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

Install

$ npm install --save gulp-ccr-config-helper

API

verify(schema, config)

Vaildate the config value using given JSON schema.

Example

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';