ringo-modulris a port of modulr to Ringo. It provides a CommonJS module
(the program) on which is does static analysis to recursively resolve its
concatenated into a single
each module with the necessary
require function and
ringo-modulr currently only provides a subset of modulr functionality.
--dependency-graph options are not supported.
$ ringo-admin install hns/ringo-modulr
ringo-modulr provides two interfaces: A command line script and a Stick
$ ringo-modulr filename.js > output.js
Options are as follows:
-o --output FILE Write the output to FILE. Defaults to stdout. -r --root DIR Set DIR as root directory. Defaults to the directory containing FILE. -h --help Show this message.
The Stick middleware is provided by module
modulr/middleware. It installs a
method in the Stick application that takes two arguments: the base directory of the
URL prefix and ends with
file is found, it is modulrized and served. Otherwise, the request is passed on through
the JSGI middleware chain.
webapp directory contains a demo for the ringo-modulr middleware. You need to
install Stick in order to run it:
$ ringo-admin install hns/stick
Then start the application with:
$ ringo-web webapp
Thanks to Tobie Langel for creating the original modulr project!
ringo-modulr is freely distributable under the terms of the MIT license.