Conditional Plugin

This plugin makes it easy to distinguish between a dev and production build in lumbar. It came about after working with local storage loaders and having to manually clear local storage every time we made a change. With this plugin we choose between two different files for lumbar loader, the localStorage and standard versions. In our lumbar.json configuration we have two entries like this

{"src":"lumber-loader-localstorage.js", "env":"production"},
{"src":"lumber-loader-storage.js", "env":"dev"}

Inline Styles Plugin

The inline styles plugin allows for css associated with a module to be included as part of the javascript associated with the module, reducing the number of requests needed to load the given module.

Module Map Plugin

This plugin will write the lumbar module mapping code used to load modules in a meaningful way. The easiest way to use the module loader is with a backbone application however it is possible to create a custom module loader.

To output the module mapping javascript code in your project, you need to add a resource reference in the files data. This reference should be in the base module after the lumbar-loader.js reference but before an loader implementation references. See lumbar-loader for more details.

Package Config Plugin

This plugin allows a file containing a JSON payload to be inserted into the build. The config value can be referenced using the config key on the application object (defined by the application name in the lumbar.json file).

This is useful to build your application for different environments like a dev machine or QA or production.

Router Plugin

Scope Plugin

The scope plugin implements a CommonJS-like module system. This allows for simple sharing of code and state across different resources.

Static Resources Plugin

Static resource management plug-in. Each module can have a "static" attribute which is an array of resources to be copied from the application path to the outputDir (or platformDir). Each static entry can be a simple string or a hash containing.

Stylus Plugin

The stylus plugin allows for generation of CSS from stylus input.

In addition to the core stylus features this lumbar plugin

Template Plugin

The template plugin provides allows for bundling of handlebars templates with the dependent javascript code, allowing templates to be kept in separate files and removing any need for additional requests to load the templates required by a given module.

Update Externals Plugin

The update externals plugin allows for updates to html files that need to reference external resources generated by lumbar.

Fork me on GitHub