chore: make lint happy, add database dir
This commit is contained in:
@@ -2,12 +2,13 @@ import io from './lib/io.js'
|
|||||||
|
|
||||||
export default class Config {
|
export default class Config {
|
||||||
static ensureAllDirsAreCreated() {
|
static ensureAllDirsAreCreated() {
|
||||||
for (const key of Object.keys(Config.dirs)) {
|
for (const key of Object.keys(Config.dirs) as Array<keyof typeof Config.dirs>) {
|
||||||
io.mkdirs(Config.dirs[key])
|
io.mkdirs(Config.dirs[key])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static BASE_DIR = 'whitesilk_data'
|
static BASE_DIR = 'whitesilk_data'
|
||||||
static dirs : { [key: string]: string } = {
|
static dirs = {
|
||||||
WEB_PAGE_DIR: this.BASE_DIR + '/_webpage'
|
WEB_PAGE_DIR: this.BASE_DIR + '/_webpage',
|
||||||
|
DATABASES_DIR: this.BASE_DIR + '/databases',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user