2020-01-04 02:28:38 +00:00
|
|
|
/* global hexo */
|
2019-12-26 03:51:14 +00:00
|
|
|
const logger = require('hexo-log')();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Print welcome message
|
|
|
|
*/
|
|
|
|
logger.info(`=======================================
|
|
|
|
██╗ ██████╗ █████╗ ██████╗ ██╗ ██╗███████╗
|
|
|
|
██║██╔════╝██╔══██╗██╔══██╗██║ ██║██╔════╝
|
|
|
|
██║██║ ███████║██████╔╝██║ ██║███████╗
|
|
|
|
██║██║ ██╔══██║██╔══██╗██║ ██║╚════██║
|
|
|
|
██║╚██████╗██║ ██║██║ ██║╚██████╔╝███████║
|
|
|
|
╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
|
|
|
=============================================`);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Check if all dependencies are installed
|
|
|
|
*/
|
2020-01-04 02:28:38 +00:00
|
|
|
require('../include/dependency')(hexo);
|
2019-12-26 03:51:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Configuration file checking and migration
|
|
|
|
*/
|
2020-01-04 02:28:38 +00:00
|
|
|
require('../include/config')(hexo);
|
2018-10-16 05:28:42 +00:00
|
|
|
|
2019-12-26 03:51:14 +00:00
|
|
|
/**
|
2020-01-04 02:28:38 +00:00
|
|
|
* Register Hexo extensions and remove Hexo filters that could cause OOM
|
2019-12-26 03:51:14 +00:00
|
|
|
*/
|
2020-01-04 02:28:38 +00:00
|
|
|
require('../include/register')(hexo);
|