30 lines
1.2 KiB
JavaScript
30 lines
1.2 KiB
JavaScript
/* global hexo */
|
|
const logger = require('hexo-log')();
|
|
|
|
/**
|
|
* Print welcome message
|
|
*/
|
|
logger.info(`=======================================
|
|
██╗ ██████╗ █████╗ ██████╗ ██╗ ██╗███████╗
|
|
██║██╔════╝██╔══██╗██╔══██╗██║ ██║██╔════╝
|
|
██║██║ ███████║██████╔╝██║ ██║███████╗
|
|
██║██║ ██╔══██║██╔══██╗██║ ██║╚════██║
|
|
██║╚██████╗██║ ██║██║ ██║╚██████╔╝███████║
|
|
╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
|
=============================================`);
|
|
|
|
/**
|
|
* Check if all dependencies are installed
|
|
*/
|
|
require('../include/dependency')(hexo);
|
|
|
|
/**
|
|
* Configuration file checking and migration
|
|
*/
|
|
require('../include/config')(hexo);
|
|
|
|
/**
|
|
* Register Hexo extensions and remove Hexo filters that could cause OOM
|
|
*/
|
|
require('../include/register')(hexo);
|