2021-06-29 20:40:54 +02:00
|
|
|
// SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
import { packageName } from '../config';
|
2021-07-13 13:59:11 +02:00
|
|
|
import registerHandlebarsPartials from '../handlebars-partials';
|
2021-06-29 20:40:54 +02:00
|
|
|
import logger from '../logger';
|
2022-04-18 03:09:05 +02:00
|
|
|
import { registerMixins } from '../mixins/index.js';
|
2021-07-13 13:59:11 +02:00
|
|
|
import registerSettings from '../setiings';
|
2021-06-29 20:40:54 +02:00
|
|
|
|
|
|
|
export default function registerForInitHook() {
|
|
|
|
Hooks.on('init', onInit);
|
|
|
|
}
|
|
|
|
|
2021-07-13 13:59:11 +02:00
|
|
|
async function onInit() {
|
2021-06-29 20:40:54 +02:00
|
|
|
logger.info(`Initializing ${packageName}`);
|
|
|
|
|
2022-04-18 03:09:05 +02:00
|
|
|
registerMixins();
|
2021-07-13 13:59:11 +02:00
|
|
|
registerSettings();
|
|
|
|
await registerHandlebarsPartials();
|
2021-06-29 20:40:54 +02:00
|
|
|
}
|