wip: 🚧 upgrading for gitea 1.21.3

This commit is contained in:
Lucas Colombo
2024-01-02 08:16:33 -03:00
parent 3bd9cbda12
commit 4a1ddf4bed
43 changed files with 524 additions and 162 deletions

View File

@@ -3,13 +3,13 @@ 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 = '/';
const tmplSrc = 'templates';
const tmplDest = '/';
export async function buildTemplates(srcHome, distHome) {
logger.info('Fonts build has started');
const tmplSrcPath = join(srcHome, imgSrc);
const tmplDestPath = join(distHome, imgDest);
logger.info('Templates build has started');
const tmplSrcPath = join(srcHome, tmplSrc);
const tmplDestPath = join(distHome, tmplDest);
// just copy the entire tmplSrcPath to tmplDestPath
copyFolderRecursiveSync(tmplSrcPath, tmplDestPath);