-
Notifications
You must be signed in to change notification settings - Fork 401
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
refactor: code organization #149
Conversation
Codecov ReportBase: 90.82% // Head: 91.06% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #149 +/- ##
==========================================
+ Coverage 90.82% 91.06% +0.24%
==========================================
Files 40 41 +1
Lines 2180 2172 -8
Branches 370 372 +2
==========================================
- Hits 1980 1978 -2
+ Misses 188 183 -5
+ Partials 12 11 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -12,7 +12,7 @@ module.exports = { | |||
'@typescript-eslint/ban-ts-ignore': 'off', | |||
'@typescript-eslint/explicit-function-return-type': 'off', | |||
'@typescript-eslint/no-explicit-any': 'off', | |||
'no-restricted-imports': ['error', { patterns: ['.*'] }], | |||
'no-restricted-imports': ['error', { patterns: ['"*/lib/*"'] }], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to self: should be build
not lib
Motivation
The Hub has become more complicated and harder to reason about as the size of the codebase as grown. A high level design that we all agree on will make it much easier to read and write code as we are getting ready for the first release.
Change Summary
The PR is very large, touches many files and squeezed in all the changes I could over a single weekend to reduce merge conflicts during the workweek. A series of smaller followup changes will be made over the next week to bring the rest in line. Comments and suggestions are welcome for other things that should be updated, or patterns that people disagree with.
The major changes are:
network
,storage
,types
,utils
andurls
rpc
into a module, which is a pattern we should replicate over the codebase to keep files smalltest
folderhubs.ts
Merge Checklist
Additional Context
If this is a relatively large or complex change, provide more details here that will help reviewers