Initialize repo

This commit is contained in:
Kazimierz Ciołek
2026-02-02 13:42:04 +01:00
commit 61e3482715
97 changed files with 156542 additions and 0 deletions

34
scripts/health.mjs Normal file
View File

@@ -0,0 +1,34 @@
import fs from 'fs';
import path from 'path';
console.log("Checking project health...");
// 1. Check for valid package.json
if (!fs.existsSync('package.json')) {
console.error("❌ package.json not found!");
process.exit(1);
}
// 2. Check source directory structure
const requiredDirs = [
'src/app',
'src/app/services',
'src/app/components',
'src/app/pages',
'src/app/config.ts'
];
let allDirsExist = true;
requiredDirs.forEach(dir => {
if (!fs.existsSync(dir)) {
console.error(`❌ Missing directory: ${dir}`);
allDirsExist = false;
}
});
if (!allDirsExist) {
process.exit(1);
}
console.log("✅ Project structure looks correct.");
console.log("✅ Health check passed!");