Skip to content

Module creation #639

Open
Open
@dbroadhurst

Description

@dbroadhurst

I'm wondering if the module section should also cover module creation. I generally have one name scope for each module but it can be inconvenient to add the dependancies. Options I've explored are;

  1. One name scope for each module - inconvenient to added lots of dependancies
  2. Ensure only one module does the creation and order the script tags - Hard to enforce when your build process does the script include. Also easy to break.
  3. Create a master module that does creation and includes the related modules as dependancies - Dependancies are easier to handle but still need one scope per module
  4. Create module definition file - Not desirable to split code across multiple files and you still need to make sure the definition file is loaded first
  5. Use requireJS or some other library to manage modules - Not done any investigation with this but feels risky to introduce another module system

I would be interested if anyone has a strategy they feel happy to recommend

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions