BREAKING CHANGE(project-structure): Refactor project structure by updating import paths, removing legacy files, and adjusting test configurations

This commit is contained in:
2025-05-09 21:52:46 +00:00
parent b214e58a26
commit 88c75d9cc2
20 changed files with 568 additions and 226 deletions

View File

@ -205,10 +205,11 @@ This component has the cleanest design, so we'll start migration here:
### Phase 9: Testing & Validation (Weeks 5-6)
- [ ] Reorganize test structure
- [ ] Create test directories matching source structure
- [ ] Move tests to appropriate directories
- [ ] Update test imports and references
- [x] Update tests to work with new structure
- [x] Update test imports to use new module paths
- [x] Keep tests in the test/ directory per project guidelines
- [x] Fix type names and import paths
- [x] Ensure all tests pass with new structure
- [ ] Add test coverage for new components
- [ ] Create unit tests for extracted utilities
@ -222,11 +223,11 @@ This component has the cleanest design, so we'll start migration here:
- [ ] Create architecture diagram showing component relationships
- [ ] Document import patterns and best practices
- [ ] Create specialized documentation
- [ ] `ARCHITECTURE.md` for system overview
- [ ] `FORWARDING.md` for forwarding system specifics
- [ ] `CERTIFICATE.md` for certificate management details
- [ ] `DEVELOPMENT.md` for contributor guidelines
- [ ] Integrate documentation sections into README.md
- [ ] Add architecture overview section
- [ ] Add forwarding system documentation section
- [ ] Add certificate management documentation section
- [ ] Add contributor guidelines section
- [ ] Update example files
- [ ] Update existing examples to use new structure
@ -315,6 +316,14 @@ This component has the cleanest design, so we'll start migration here:
| **Examples and Entry Points** | | |
| ts/examples/forwarding-example.ts | ts/examples/forwarding-example.ts | ❌ |
| ts/index.ts | ts/index.ts (updated) | ✅ |
| **Tests** | | |
| test/test.smartproxy.ts | (updated imports) | ✅ |
| test/test.networkproxy.ts | (updated imports) | ✅ |
| test/test.forwarding.ts | (updated imports) | ✅ |
| test/test.forwarding.unit.ts | (updated imports) | ✅ |
| test/test.forwarding.examples.ts | (updated imports) | ✅ |
| test/test.router.ts | (updated imports) | ✅ |
| test/test.certprovisioner.unit.ts | (updated imports) | ✅ |
## Import Strategy