hexo-theme-amane/scripts/index.js

30 lines
1.2 KiB
JavaScript
Raw Normal View History

2020-01-04 02:28:38 +00:00
/* global hexo */
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);
/**
* 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
/**
2020-01-04 02:28:38 +00:00
* Register Hexo extensions and remove Hexo filters that could cause OOM
*/
2020-01-04 02:28:38 +00:00
require('../include/register')(hexo);