Skip to content

Utility code to load config of a plugin #2

@ringods

Description

@ringods

First of all, thanks for writing gulp-chef.

I am writing a gulp-ccr-layouts plugin similar to what metalsmith-layouts provides.

In this plugin, I want to write tests also validating the different configuration options. Once you start with a JSON Schema using the 'oneOf' option, it makes sense to validate the different code paths.

Is it possible to have a utility function available that loads the config according the schema in my plugin and have it available as a hash afterwards?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions