gitea-custom/tools/tasks/templates.js
Lucas Colombo 65a7943588 🥂 Initial commit
2023-07-01 16:19:40 -03:00

18 lines
613 B
JavaScript

import { join } from 'path';
import { copyFolderRecursiveSync } from '../utils/funcs.js';
import { Logger } from '../utils/logger.js';
const logger = new Logger(buildTemplates.name, 'info', 'blue');
const imgSrc = 'templates';
const imgDest = '/';
export async function buildTemplates(srcHome, distHome) {
logger.info('Fonts build has started');
const tmplSrcPath = join(srcHome, imgSrc);
const tmplDestPath = join(distHome, imgDest);
// just copy the entire tmplSrcPath to tmplDestPath
copyFolderRecursiveSync(tmplSrcPath, tmplDestPath);
logger.info('Templates build has finished');
}