From e19b1295045e5f75148a4c5fcb474291cd2f6d78 Mon Sep 17 00:00:00 2001 From: gsx <530353222@qq.com> Date: Thu, 24 Feb 2022 05:48:38 +0800 Subject: [PATCH] remove app.js --- app.js | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 app.js diff --git a/app.js b/app.js deleted file mode 100644 index e68c254..0000000 --- a/app.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * 全局定义 - * @param app - */ -'use strict'; - -class AppBootHook { - constructor(app) { - this.app = app; - } - - configWillLoad() { - // Ready to call configDidLoad, - // Config, plugin files are referred, - // this is the last chance to modify the config. - } - - configDidLoad() { - // Config, plugin files have been loaded. - } - - async didLoad() { - // All files have loaded, start plugin here. - } - - async willReady() { - // All plugins have started, can do some thing before app ready - } - - async didReady() { - // Worker is ready, can do some things - // don't need to block the app boot. - } - - async serverDidReady() { - // Server is listening. - // const storageFile = './storage'; - // utils.chmodPath(storageFile, '777'); - } - - async beforeClose() { - // Do some thing before app close. - } -} - -module.exports = AppBootHook;