eshaffer321
|
95c934cb2f
|
refactor: Comprehensive project root cleanup and organization (#93)
This PR performs extensive cleanup of the project root directory to reduce
clutter and improve organization while maintaining all functionality.
## ๐ Directory Structure Improvements
- Move documentation files to `docs/`:
- `MESSAGES_TAB_FIX.md` โ `docs/MESSAGES_TAB_FIX.md`
- Create organized build structure:
- `com.stravu.crystal.metainfo.xml` โ `build/linux/`
- `com.stravu.crystal.yml` โ `build/linux/`
- Organize scripts and tests:
- `check-license-compatibility.sh` โ `scripts/`
- `test-nested-process.sh` โ `tests/`
## ๐งน Configuration File Cleanup
### Removed Redundant Files (5 files eliminated):
- Remove `frontend/vite.config.js` (duplicate of `vite.config.ts`)
- Remove `frontend/package-lock.json` (conflicts with pnpm workspace)
- Remove `.node-version` (duplicate of `.nvmrc`)
- Remove `.eslintignore` (workspace configs are sufficient)
- Remove `PR_DESCRIPTION.md` (PR-specific, not needed in repo)
### Playwright Configuration Consolidation:
- **Before**: 3 separate config files (`playwright.config.ts`, `playwright.ci.config.ts`, `playwright.ci.minimal.config.ts`)
- **After**: 1 environment-driven config using `CI` and `PLAYWRIGHT_MINIMAL` variables
- Updated package.json scripts to use environment variables instead of separate configs
- **67% reduction** in Playwright config files while maintaining all functionality
## ๐ง Reference Updates
- Update `docs/LICENSE-COMPATIBILITY.md` script references
- Update `scripts/build-flatpak.sh` Linux file paths
- Update `.github/workflows/license-compliance.yml` script path
- Update `.gitignore` to track `build/linux/` directory
- Update package.json test scripts for consolidated Playwright config
## โจ Results
### File Count Reduction:
- **5 redundant configuration files** removed
- **3 Playwright configs** โ **1 environment-driven config**
- **6 dot files** โ **4 essential dot files**
### Better Organization:
- โ
Clean project root with only essential files
- โ
Logical directory structure (build/, docs/, scripts/, tests/)
- โ
No duplicate or conflicting configuration files
- โ
Environment-driven configuration over multiple files
### Maintained Functionality:
- โ
All CI workflows updated and passing
- โ
All build processes preserved
- โ
All test configurations preserved
- โ
Workspace isolation maintained
This cleanup significantly improves the developer experience while ensuring
no functionality is lost. The project is now better organized and easier
to navigate and maintain.
Co-authored-by: Erick Shaffer <erick.shaffer@meraki.net>
Co-authored-by: Jordan Bentley <151466993+jordan-BAIC@users.noreply.github.com>
|
2025-07-21 12:24:08 -04:00 |
|