-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
CakmLexi
committed
Jun 27, 2024
1 parent
010e46d
commit 8e3868c
Showing
50 changed files
with
521 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export * from './dir' | ||
export * from './init' | ||
export * from './karin' | ||
export * from './listener' | ||
export * from './plugin' | ||
export * from './plugin.app' | ||
export * from './plugin.loader' | ||
export * from './process' | ||
export * from './server' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
process.title = 'karin' | ||
import { logger } from 'karin/utils/index' | ||
|
||
/** | ||
* 启动日志 | ||
*/ | ||
logger.mark('Karin 启动中...') | ||
logger.mark('https://github.com/KarinJS/Karin') | ||
/** | ||
* 设置标题 | ||
*/ | ||
process.title = 'Karin' | ||
/** | ||
* 设置时区 | ||
*/ | ||
process.env.TZ = 'Asia/Shanghai' | ||
/** | ||
* 设置应用模式 | ||
*/ | ||
process.env.karin_app_mode = process.argv[2]?.includes('dev') ? 'dev' : 'prod' | ||
/** | ||
* 设置语言环境 | ||
*/ | ||
process.env.karin_app_lang = JSON.stringify(process.execArgv).includes('tsx@') ? 'ts' : 'js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.