GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — app-ghost/scripts/clean.js at main · code/app-ghost Expand file tree/ Copy pathclean.jsMore file actions 44 lines (40 loc) · 1.21 KB / Copy pathclean.jsFile metadata and controls44 lines (40 loc) · 1.21 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 // NOTE: this file can't use any NPM dependencies because it needs to run even if dependencies aren't installed yet or are corrupted import { execSync } from 'node:child_process'; function deleteBuildArtifacts() { console.log('Deleting all build artifacts...'); try { execSync('find ./ghost -type d -name "build" -exec rm -rf \'{}\' +', { stdio: 'inherit', }); execSync('find ./ghost -type f -name "tsconfig.tsbuildinfo" -delete', { stdio: 'inherit', }); } catch (error) { console.error('Failed to delete build artifacts:', error); process.exit(1); } } function deleteNodeModules() { console.log('Deleting all node_modules directories...'); try { execSync('find . -name "node_modules" -type d -prune -exec rm -rf \'{}\' +', { stdio: 'inherit', }); } catch (error) { console.error('Failed to delete node_modules directories:', error); process.exit(1); } } function resetNxCache() { console.log('Resetting NX cache...'); try { execSync('rm -rf .nxcache .nx'); } catch (error) { console.error('Failed to reset NX cache:', error); process.exit(1); } } resetNxCache(); deleteNodeModules(); deleteBuildArtifacts(); console.log('Cleanup complete!'); |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |