Order modules base on dependencies
See original GitHub issueA module can depend on other modules, for example the Orders module depends on the Catalog Module.
In the module.json. We would like to add a property call dependencies
{
"name": "cms",
"fullName": "SimplCommerce.Module.Orders",
"isBundledWithHost": true,
"version": "1.0.0",
"dependencies" : ["SimplCommerce.Module.Core", "SimplCommerce.Module.Catalog"]
}
Then a new method to sort loaded modules by dependency. For example, Core have to come before Catalog, Catalog before Orders.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How to sort depended objects by dependency
To order a list every sorting algorithm will only check if any consecutive elements are sorted. In your case sorted means : the...
Read more >Find the ordering of tasks from given dependencies
The findOrder function does a DFS traversal of the graph, which takes O(V+E) time, where V is the number of tasks and E...
Read more >Module build order - Fedora Documentation
Module build order. Packages which are built within a module stream can have dependency relationships between them. This means that packages within a...
Read more >Module dependencies | IntelliJ IDEA Documentation
Modules can depend on SDKs, JAR files (libraries) or other modules within a project. When you compile or run your code, the list...
Read more >Managing dependencies
To add all dependencies for a package in your module, run a command like the one below ("." refers to the package in...
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
Let me start on this …
Do you mean order them based on their dependencies?!!