这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Use requirejs for dependency management #39

@jbeezley

Description

@jbeezley

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.

vglclassdiagram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions