Refactor project structure
See original GitHub issuePreviously, features specific to a command were kept in the command folder. As the application grow, features started to be shared across multiple commands.
Suggested project structure:
protostar
- commands
- build_command.py
- ...
- shared # keep it small — increases coupling
- constants.py # e.g. link to the protostar repository
- protostar_exception.py
- features # contains only packages not modules
- cli
- starknet_gateway
- starknet_compiler
- testing
- ...
- protostar_cli.py
- composition_root.py
- start.py
commands
can import fromshared
,features
and othercommands
features
can import fromshared
otherfeatures
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
project structure - Is it simply Cleaning or Refactoring?
The refactorings Fowler describes are logical cleanups, where, for example, functions with more than one responsibility are reworked and divided ...
Read more >How to refactor a folder to a new project with the right ...
1º. Create the new Project \ Folder structure in the new solution (or project) and move the files manually to their respective folders....
Read more >What is Refactoring (Code Refactoring)? - TechTarget
The refactoring process features many small changes to a program's source code. One approach to refactoring, for example, is to improve the structure...
Read more >Copy and Move Refactorings | IntelliJ IDEA Documentation
The Move refactoring lets you move packages and classes between the source roots of a project, class members to other classes and inner...
Read more >Lab: Refactoring Code
1 Set Up Your Project · 2 Refactoring 1: Project Layout · 3 Refactoring 2: Repackaging the Code · 4 Refactoring 3: Improving...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@MaksymilianDemitraszek You already do https://react-file-structure.surge.sh/
It seems we use Screaming Architecture. Closing.