Skip to content
A project to help me understand how Modulr works
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Modulr demo project

This project is a little test-bed to help me understand how Modulr works. Modulr is a script concatenation tool similar to Sprockets, but uses the CommonJS API to declare which files should be merged at build time.

modulrized.js is the file generated by running:

$ modulrize main.js > modulrized.js


To learn more about Modulr, take a peek at the project on Github:

Try it for yourself

$ sudo gem install modulr
$ git clone git://
$ cd modulr-demo
$ modulrize main.js > modulrized.js
$ open ./index.html

Take a look at main.js and each of the files within lib/ to get an idea of how all of the scripts tie together. The result is viewable within modulrized.js.

More information

I've posted a more thorough explanation of Modulr on my blog.

Something went wrong with that request. Please try again.