3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-11 21:17:19 +00:00

Migrate Starboard to new Plugin structure

This commit is contained in:
Dark 2020-07-22 23:15:40 +02:00
parent aef2b4f43a
commit 803da94829
12 changed files with 443 additions and 0 deletions

View file

@ -0,0 +1,12 @@
import { PartialConfigSchema, defaultStarboardOpts } from "../types";
import * as t from "io-ts";
export function preprocessStaticConfig(config: t.TypeOf<typeof PartialConfigSchema>) {
if (config.boards) {
for (const [name, opts] of Object.entries(config.boards)) {
config.boards[name] = Object.assign({}, defaultStarboardOpts, config.boards[name]);
}
}
return config;
}