You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
I started branch vgl/require-js-loader to explore using requirejs to load dependencies within the project. I wrote a shim in src/init.js that will keep the code working until we start building with it. I converted src/actor.js to use the define call. I am looking for some feedback on the style. It will take a significant amount of work and a large diff to make the change, but it won't change the API from the user's perspective.
The overall benefit of this beyond making the CMakeLists file more maintainable is that we can easily examine the dependencies between modules. The class inheritance style that currently exists allows me to create graphs like the one attached below, but with a full view of the dependency tree.
The text was updated successfully, but these errors were encountered:
This looks great. Is the tree generated via the requirejs output (I think tha's what you are saying). On the define, what's the advantage? Also, do you have to pass the boundingObject?
One can generate the tree pretty easily once the dependencies are listed in a well defined manner. It may be possible to do so directly with requirejs, but it really isn't hard write something that does it.
The advantage of the define function is that 1. dependencies are explicitly listed, and 2. requirejs takes care of loading the modules in the correct order so you don't have to manage that in the CMakeLists.
For this style of module loading, you do have to pass boundingObject for it to work as intended. Like I said, it will require a major overhaul, so maybe it is something better left for later.
I started branch vgl/require-js-loader to explore using requirejs to load dependencies within the project. I wrote a shim in src/init.js that will keep the code working until we start building with it. I converted src/actor.js to use the
define
call. I am looking for some feedback on the style. It will take a significant amount of work and a large diff to make the change, but it won't change the API from the user's perspective.The overall benefit of this beyond making the CMakeLists file more maintainable is that we can easily examine the dependencies between modules. The class inheritance style that currently exists allows me to create graphs like the one attached below, but with a full view of the dependency tree.
The text was updated successfully, but these errors were encountered: