azproduction / lmd

LMD - JavaScript Module-Assembler for building better web applications :warning: Project is no longer supported :warning:
http://azproduction.ru/lmd/
MIT License
449 stars 27 forks source link

LMD bundles extended #114

Closed azproduction closed 10 years ago

azproduction commented 11 years ago

See #103

require.boundle("path/to/bundle.js", functon () {})

boudle in config

{
    "modules": {
         "ololo": "@/www/path/_/ololo.js"
     },
    "boundles": {
        "pewpew": "pewpew.lmd.json",
        "ololo": {
            "output": "ololo.js",
            "modules": {
                "a": "a.js",
                "b": "b.html",
                "c": "@shortcut/to/file.js"
            }
        }
    },
    "bundles_callback": "pewpew_ololo"
}
%random_function_name%(function (){
// main (optional)
},{
    "a": (function(...){...}),
    "b": "<div></div>",
    "c": "@shortcut/to/file.js"
},{
// options
})