chore: remove redundant files, fix app:setup symlinks

- Remove antigravity-awesome-skills-5.9.0.tgz (npm pack artifact)
- Remove .DS_Store from tracking
- Stop tracking web-app/public/skills and skills.json (generated by app:setup)
- Add .DS_Store, .ruff_cache, *.tgz, web-app/public/skills to .gitignore
- Fix setup_web.js: use statSync to follow symlinks (fixes ENOTDIR on CLAUDE.md)

Made-with: Cursor
This commit is contained in:
sck_0
2026-02-27 08:59:16 +01:00
parent 2b551eaef4
commit 1e73502c3d
3164 changed files with 20 additions and 557389 deletions

View File

@@ -28,16 +28,21 @@ const destSkills = path.join(WEB_APP_PUBLIC, 'skills');
console.log(`Copying skills directory...`);
// Recursive copy function
// Recursive copy function (follows symlinks to copy resolved content)
function copyFolderSync(from, to) {
if (!fs.existsSync(to)) fs.mkdirSync(to);
if (!fs.existsSync(to)) fs.mkdirSync(to, { recursive: true });
fs.readdirSync(from).forEach(element => {
if (fs.lstatSync(path.join(from, element)).isFile()) {
fs.copyFileSync(path.join(from, element), path.join(to, element));
} else {
copyFolderSync(path.join(from, element), path.join(to, element));
const srcPath = path.join(from, element);
const destPath = path.join(to, element);
const stat = fs.statSync(srcPath); // statSync follows symlinks
if (stat.isFile()) {
fs.copyFileSync(srcPath, destPath);
} else if (stat.isDirectory()) {
copyFolderSync(srcPath, destPath);
}
// Skip other types (e.g. sockets, FIFOs)
});
}