TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.
TypeScript graphviewkanban-boardnodejsproductivityproject-managementself-hostedtasktask-managementtask-managertodoapp
const fs = require('fs');
const path = require('path');
const source = '../dist-migration';
const destination = '../postgresql/dist-migration';
const sourcePath = path.resolve(__dirname, source);
const destinationPath = path.resolve(__dirname, destination);
async function copyDirectory(source, destination) {
if (!fs.existsSync(destination)) {
fs.mkdirSync(destination, { recursive: true });
}
const files = fs.readdirSync(source);
for (const file of files) {
const sourcePath = path.join(source, file);
const destPath = path.join(destination, file);
const stat = fs.statSync(sourcePath);
if (stat.isDirectory()) {
await copyDirectory(sourcePath, destPath);
} else {
fs.copyFileSync(sourcePath, destPath);
}
}
}
copyDirectory(sourcePath, destinationPath);