Skip to content

Conversation

ryanrozich
Copy link
Owner

Summary

Comprehensive audit and cleanup of the scripts directory to keep only scripts that are useful for ongoing development and maintenance.

Changes Made

1. Reorganized Scripts into Logical Directories

  • dev/ - Development utilities (pre-push hooks, demo validation)
  • quality/ - Code quality tools (whitespace, CodeQL, font checks)
  • build/ - Build utilities (version info, OG image generation, StackBlitz)
  • release/ - Release management scripts
  • utils/ - Shared utilities (run-tsx, ensure-project-root)

2. Archived Unused Scripts (git-ignored)

Created scripts-archive/ directory with two subdirectories:

  • bot-automation/ - GitHub project sync scripts, bot workflows, automation tools
  • one-time/ - Bootstrap scripts, one-time fixes, setup scripts, migrations

3. Updated All References

  • Updated all script paths in package.json
  • Updated GitHub workflow files to use new paths
  • Removed npm scripts that referenced archived scripts

4. Removed Duplicates

  • Consolidated duplicate scripts that existed in multiple locations
  • Kept only the most recent/functional versions

5. Documentation

  • Created comprehensive scripts/README.md with:
    • Directory structure overview
    • Detailed table of all scripts with purpose and usage
    • Requirements and best practices
    • Information about archived scripts

Testing

  • ✅ Verified all npm scripts still work (npm run check:whitespace, npm run check:codeql)
  • ✅ Updated all GitHub workflow references
  • ✅ No broken script references in package.json

Archived Scripts

The following types of scripts were moved to scripts-archive/ (preserved but not in version control):

  • All bot workflow scripts
  • GitHub project sync and automation scripts
  • One-time setup and bootstrap scripts
  • Migration and fix scripts
  • MADF-related scripts

These are available locally if needed but won't clutter the main scripts directory.

Closes #85

🤖 Generated with Claude Code

- Reorganized scripts into logical subdirectories:
  - dev/ - Development utilities (pre-push, demo validation)
  - quality/ - Code quality tools (whitespace, codeql, fonts)
  - build/ - Build utilities (version info, og-image, stackblitz)
  - release/ - Release management scripts
  - utils/ - Shared utilities (run-tsx, ensure-project-root)

- Archived unused scripts to scripts-archive/ (git-ignored):
  - bot-automation/ - GitHub project sync and bot workflows
  - one-time/ - Setup scripts, migrations, and fixes

- Updated all script references in:
  - package.json npm scripts
  - GitHub workflows

- Created comprehensive scripts/README.md documenting all scripts

- Removed duplicate scripts and consolidated functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added status: in-code-review PR ready, awaiting code review enhancement New feature or request area: build Build tools, bundling, TypeScript config priority: high Important, should be fixed soon and removed status: in-code-review PR ready, awaiting code review labels Jul 10, 2025
@ryanrozich ryanrozich merged commit 5c20082 into release/v0.2.0-rc2 Jul 11, 2025
13 of 16 checks passed
@github-actions github-actions bot added the status: merged PR merged to main branch label Jul 11, 2025
Copy link

🧹 Preview Deployment Cleaned Up

The preview deployment for this PR has been removed.

Copy link

🧹 Preview Deployment Cleaned Up

The preview deployment for this PR has been removed:

  • ✅ API worker deleted
  • ✅ KV metadata removed
  • ✅ R2 objects deleted

Thank you for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build tools, bundling, TypeScript config enhancement New feature or request priority: high Important, should be fixed soon status: merged PR merged to main branch

Projects

Status: 🚀 Merged

Development

Successfully merging this pull request may close these issues.

1 participant