🥂 Initial commit

This commit is contained in:
Lucas Colombo
2023-07-01 16:19:40 -03:00
commit 65a7943588
488 changed files with 57991 additions and 0 deletions

17
tools/tasks/templates.js Normal file
View File

@@ -0,0 +1,17 @@
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');
}