This document tracks the repository structure reorganization performed to clean up the root directory.
The following PowerShell and JavaScript files were moved from root to the scripts/ directory:
Build-Help.ps1→scripts/Build-Help.ps1build.ps1→scripts/build.ps1Convert-AnsiToColorScript-Advanced.ps1→scripts/Convert-AnsiToColorScript-Advanced.ps1Convert-AnsiToColorScript.js→scripts/Convert-AnsiToColorScript.jsConvert-AnsiToColorScript.ps1→scripts/Convert-AnsiToColorScript.ps1Get-ColorScriptCount.ps1→scripts/Get-ColorScriptCount.ps1Lint-Module.ps1→scripts/Lint-Module.ps1Test-Module.ps1→scripts/Test-Module.ps1Update-DocumentationCounts.ps1→scripts/Update-DocumentationCounts.ps1
Moved examples folder to be part of documentation structure:
examples/ansi-conversion/→docs/examples/ansi-conversion/
Moved ANSI art source files to assets:
ansi-files/→assets/ansi-files/(27 .ANS files)
Moved oversized colorscripts documentation:
oversized-colorscripts/→docs/oversized-colorscripts/
- ✅
package.json- Updated all script paths and main entry point - ✅
scripts/Update-DocumentationCounts.ps1- Updated Get-ColorScriptCount.ps1 path - ✅
scripts/Lint-Module.ps1- Updated paths to use parent directory references - ✅
scripts/Test-Module.ps1- Updated all module and script paths - ✅
scripts/Split-AnsiFile.js- Updated Convert-AnsiToColorScript.js import - ✅
docs/examples/ansi-conversion/Convert-SampleAnsi.ps1- Updated converter path
The following files contain references to moved files and need to be updated:
README.md- Multiple references to scriptsColorScripts-Enhanced/README.md- Multiple references to scriptsCONTRIBUTING.md- References to Test-Module.ps1, Lint-Module.ps1, build.ps1docs/DEVELOPMENT.md- References to all moved scriptsdocs/PUBLISHING.md- References to build.ps1, Lint-Module.ps1, Test-Module.ps1docs/QUICK_REFERENCE.md- References to conversion scripts and lint scriptsdocs/ANSI-CONVERSION-GUIDE.md- Numerous references to Convert-AnsiToColorScript.ps1docs/MODULE_SUMMARY.md- References to Lint-Module.ps1docs/ROADMAP.md- References to Get-ColorScriptCount.ps1docs/RELEASE_CHECKLIST.md- References to build.ps1docs/POWERSHELL-VERSIONS.md- References to Test-Module.ps1docs/examples/ansi-conversion/README.md- References to converter scriptsdocs/examples/ansi-conversion/Split-SampleAnsi.ps1- Needs converter reference update
If users have local references to these scripts, they should update:
# Old
.\build.ps1
.\Test-Module.ps1
.\Lint-Module.ps1
# New
.\scripts\build.ps1
.\scripts\Test-Module.ps1
.\scripts\Lint-Module.ps1All npm scripts remain unchanged - they automatically use the new paths:
npm run build
npm test
npm run lint# Old
node Convert-AnsiToColorScript.js file.ans
# New
node scripts/Convert-AnsiToColorScript.js file.ans- Cleaner Root - Project root now contains only essential files
- Better Organization - Related files grouped together
- Standard Structure - Follows common repository conventions
- Easier Navigation - Scripts and assets in logical locations
After these changes, the following have been tested and verified:
-
npm run build- Build process ✅ -
npm test- Test suite ✅ -
npm run lint- Linting ✅ -
npm run scripts:convert- ANSI conversion ✅ - GitHub Actions workflows - All CI/CD pipelines ✅
- Local development workflows ✅
The following workflow files were updated to use the new script paths:
.github/workflows/test.yml- UpdatedTest-Module.ps1path.github/workflows/publish.yml- Updatedbuild.ps1path
# Moved files using git mv to preserve history
git mv Build-Help.ps1 scripts/
git mv build.ps1 scripts/
git mv Convert-AnsiToColorScript*.* scripts/
git mv Get-ColorScriptCount.ps1 scripts/
git mv Lint-Module.ps1 scripts/
git mv Test-Module.ps1 scripts/
git mv Update-DocumentationCounts.ps1 scripts/
# Moved directories using robocopy + git commands
robocopy examples docs\examples /E /MOVE
robocopy ansi-files assets\ansi-files /E /MOVE
git add docs/examples assets/ansi-files
git rm -r examples ansi-filesThis reorganization maintains git history through proper git mv commands and updates all internal references.