Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 1.5 KB

module-inception.md

File metadata and controls

34 lines (31 loc) · 1.5 KB

Module Inception

ColdBox 4 allows you to nest modules within modules up to the Nth degree. You can package a module with other modules that can even contain other modules within them. It really opens a great opportunity for better packaging, delivery and a further break from monolithic applications. To use, just create a modules folder in your module and drop the modules there as well. You can also just create a box.json in the root of your module and let CommandBox manage your module dependencies. Here is an example of the ColdBox ORM Module:

{
    "name"         : "ColdBox ORM Extensions",
    "version"    : "1.0.3",
    "author"     : "Luis Majano <[email protected]",
    "slug"        : "cborm",
    "type"        : "modules",
    "homepage"    : "http://www.coldbox.org",
    "documentation"        : "http://wiki.coldbox.org",
    "repository"        : { "type" : "git", "url" : "https://github.com/ColdBox/cbox-cborm" },
    "shortDescription"    : "Enhances the ColdFusion ORM with tons of utilities.",
    "license"            : [
        { "type" : "Apache2", "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" }
    ],
    "contributors"        : [
        "Brad Wood <[email protected]>", "Curt Gratz <[email protected]>", "Joel Watson <[email protected]>"
    ],
    "dependencies"     :{
        "cbvalidation" : "1.0.2"
    },
    "ignore":[
        "**/.*",
        "tests",
        "apidocs",
        "*/.md"
    ]
}