includejs-loader

    0.5.3 • Public • Published

    IncludeJS

    Resource Loader
    Build Status
    Resource Loader

    Features:

    • Scripts, Styles, Ajax
    • All resources can be combined (scripts/styles/images/etc.) afterwards (but not necessary) with IncludeJS.Builder
    • Inline Dependency Declaration No external files, as package.json or config.js
    • Can be loaded any script file. No prerequests for module definition
    • Routing include.routes({ controller: '/src/controllers/{0}.js' }); /* ... */ include.js({controller: 'user' });
    • Parameterized include

      include.js({ compo: 'myCompo?color=green' }); myCompo.js : document.body.style.backgroundColor = include.iparams.color

    • Module Exports

      myScript.js include.exports = { logMe: console.log.bind(console, 'Me') }

    • Javascript Aliases

      include.js('myScript.js::Logger').done(function(response){ response.Logger.logMe(); }); or without alias: include.js('myScript.js').done(function(response){ response.myScript.logMe(); });

    • Custom Loader Support

      Already implemented *.coffee and *.less

      IncludeJS.Builder will compile coffeescript and less to javascript and css for better "release" performance
    • Lazy Modules Scripts will be evaluated only when you needs them
    • Browser and nodejs
    • Performance
    • No dependencies

    API

    IncludeJS is part of LibJS Project

    Keywords

    none

    Install

    npm i includejs-loader

    DownloadsWeekly Downloads

    1

    Version

    0.5.3

    License

    none

    Last publish

    Collaborators

    • avatar