Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split main.ts in separate modules #378

Open
cristianoventura opened this issue Dec 12, 2024 · 0 comments
Open

Split main.ts in separate modules #378

cristianoventura opened this issue Dec 12, 2024 · 0 comments
Labels
refactor This issue is related to improvement in code refactoring

Comments

@cristianoventura
Copy link
Collaborator

The current main.ts file has grown significantly in size and complexity, making it difficult to maintain and scale over time. As new features and changes are added, the file has become harder to navigate and troubleshoot.

Following patterns adopted in other open-source Electron projects, we'd like to split the logic into separate files/modules that have a clear and single responsibility.

Example:

├── src
│   ├─ main
│   ├───── browser.ts
│   ├───── ipc.ts
│   ├───── logger.ts
│   ├───── main.ts
│   ├───── mainWindow.ts
│   ├───── menu.ts
│   ├───── proxy.ts
│   ├───── script.ts
│   └───── splashscreenWindow.ts
@cristianoventura cristianoventura added the refactor This issue is related to improvement in code refactoring label Dec 12, 2024
@cristianoventura cristianoventura changed the title Refactor main.ts in separate modules Splt main.ts in separate modules Dec 12, 2024
@cristianoventura cristianoventura changed the title Splt main.ts in separate modules Split main.ts in separate modules Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor This issue is related to improvement in code refactoring
Projects
None yet
Development

No branches or pull requests

1 participant