refactor: 重構後端代碼, 換用 Deno
This commit is contained in:
13
server/config.ts
Normal file
13
server/config.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import io from './lib/io.js'
|
||||
|
||||
export default class Config {
|
||||
static ensureAllDirsAreCreated() {
|
||||
for (const key of Object.keys(Config.dirs)) {
|
||||
io.mkdirs(Config.dirs[key])
|
||||
}
|
||||
}
|
||||
static BASE_DIR = 'whitesilk'
|
||||
static dirs : { [key: string]: string } = {
|
||||
WEB_PAGE_DIR: this.BASE_DIR + '/_webpage'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user