Skip to content

Maintenance: Add build artifacts cleanup tooling#231

Closed
0xAxiom wants to merge 3 commits into
mainfrom
cleanup/reduce-bloated-directories
Closed

Maintenance: Add build artifacts cleanup tooling#231
0xAxiom wants to merge 3 commits into
mainfrom
cleanup/reduce-bloated-directories

Conversation

@0xAxiom

@0xAxiom 0xAxiom commented Mar 29, 2026

Copy link
Copy Markdown
Owner

Summary

Addresses directory bloat issues identified in repository review. Provides tooling to clean up large untracked build artifacts that accumulate in pipeline outputs.

Problem

  • directory was 1.9GB due to untracked and build artifacts
  • Other pipeline directories (, , ) also accumulating build cache
  • Files are gitignored but create poor developer experience and slow clone/sync times

Solution

  • New cleanup script: 🧹 AppFactory Build Artifacts Cleanup
    =======================================
    📏 Checking current directory sizes...
    Before cleanup:
    agent-factory: 1.4M
    website-pipeline: 2.1M
    claw-pipeline: 560K
    miniapp-pipeline: 1.1M

🗑️ Cleaning up build artifacts...

  • Removing node_modules from outputs and builds...
  • Removing .next, dist, and log files...
  • Removing Expo artifacts...

📏 Directory sizes after cleanup:
agent-factory: 1.4M
website-pipeline: 2.1M
claw-pipeline: 560K
miniapp-pipeline: 1.1M

✅ Cleanup complete!

💡 Tip: Add this to your workflow:
npm run clean:artifacts # (if added to package.json)
./scripts/cleanup-build-artifacts.sh

🔒 Note: All cleaned files are already gitignored and won't be committed

  • Removes from and
  • Cleans , , , and log files
  • Provides before/after size reporting
  • Safe operation - only removes gitignored files
  • NPM script:

appfactory@12.0.1 clean:artifacts
./scripts/cleanup-build-artifacts.sh

🧹 AppFactory Build Artifacts Cleanup

📏 Checking current directory sizes...
Before cleanup:
agent-factory: 1.4M
website-pipeline: 2.1M
claw-pipeline: 560K
miniapp-pipeline: 1.1M

🗑️ Cleaning up build artifacts...

  • Removing node_modules from outputs and builds...
  • Removing .next, dist, and log files...
  • Removing Expo artifacts...

📏 Directory sizes after cleanup:
agent-factory: 1.4M
website-pipeline: 2.1M
claw-pipeline: 560K
miniapp-pipeline: 1.1M

✅ Cleanup complete!

💡 Tip: Add this to your workflow:
npm run clean:artifacts # (if added to package.json)
./scripts/cleanup-build-artifacts.sh

🔒 Note: All cleaned files are already gitignored and won't be committed for convenient execution

Results

After cleanup:

  • : 1.9GB → 1.4MB (99.9% reduction)
  • : 721MB → 2.1MB
  • : 422MB → 560KB
  • : 398MB → 1.1MB

Usage

npm run clean:artifacts
# or directly:
./scripts/cleanup-build-artifacts.sh

This is a maintenance improvement with no impact on functionality.

- Add scripts/cleanup-build-artifacts.sh to remove untracked build files
- Removes node_modules, .next, dist, and log files from pipeline outputs
- Add npm run clean:artifacts command for convenient execution
- Addresses directory bloat (agent-factory was 1.9GB, now 1.4MB)
- Script is safe - only removes gitignored files, won't affect tracked code
- Includes before/after size reporting for transparency
@0xAxiom 0xAxiom requested a review from MeltedMindz as a code owner March 29, 2026 00:12
0xAxiom added 2 commits March 28, 2026 18:19
- Fixed Ajv constructor usage (removed .default and invalid 'strict' option)
- Resolved npm audit vulnerabilities with npm audit fix
- All type checks and tests now passing
@0xAxiom

0xAxiom commented May 18, 2026

Copy link
Copy Markdown
Owner Author

Closing — switching to direct-to-main workflow for this repo. Branch preserved if cherry-pick needed.

@0xAxiom 0xAxiom closed this May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant