feat: default config

This commit is contained in:
cha0s 2020-12-01 15:25:36 -06:00
parent 7f4010cac3
commit ac3ab2dd03

View File

@ -19,6 +19,15 @@ export default class Plugins {
});
}
}
const defaultConfig = this.invoke('@latus/core/config');
const plugins = Object.keys(defaultConfig);
for (let i = 0; i < plugins.length; i++) {
const plugin = plugins[i];
this.config[plugin] = {
...defaultConfig[plugin],
...this.config[plugin],
};
}
}
invoke(hook, ...args) {