Skip to content
This repository was archived by the owner on Jun 18, 2019. It is now read-only.
This repository was archived by the owner on Jun 18, 2019. It is now read-only.

Feature: optional extend (aka silently fail on missing file) #83

Description

@airtonix

right now we have two ways to build up an eventual configuration object from other files:


export default new Config().extend({
  'core/foo': (config) => {
    config.bar.forEach( (item) => { item.name = `${item.name}-foo`; })
  }
})

or

export default new Config()
  .extend('core/foo');

At the moment, if core/foo doesn't exist, then an error is thrown.

instead, let's specify a way to relax errors for missing files, then default to extending an empty object.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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