azproduction / lmd

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

LMD bundles basics #103

Closed azproduction closed 11 years ago

azproduction commented 11 years ago

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
})