config package
Classes
| Class | Description |
|---|---|
| ValidationError |
Functions
| Function | Description |
|---|---|
| getConfig(config, envs) | Returns environment configs merged with global configs. |
| loadConfig(path) | Parses and validates a config file from the specified path. |
| searchConfig(path) | Searches config files in the given directory. Returns an empty object when config files does not exist in the directory. |
| validate(data) | Validates data against the configuration schema. It throws a ValidationError when validation failed. |
Interfaces
| Interface | Description |
|---|---|
| Config | Global config type. |
| EnvironmentConfig | Environment config type. |
| PluginConfig | Plugin config type. |