redo.js
node.js wrapper for the redo build system. For declaring dependencies in JavaScript .do
files.
install
npm install redo
Redo itself is packaged under bin
and exported, so
npm install -g redo
makes the redo-*
commands available to the system. This is not necessary for the library to work, but it does mean you don't have to type ./node_modules/.bin/redo
. Which is nice.
using
See the redo docs for an overview of the build system itself.
default.upper.do
#!/usr/bin/env nodevar redo = ;var fs = ; redo;
default.js.do
It's a bit nicer in Livescript:
#!/usr/bin/env lscrequire! [redo, fs, LiveScript] <- redo.ifchange process.argv.2 + '.ls' fs.read-file-sync process.argv[2] + '.ls', \utf8|> LiveScript.compile|> process.stdout.write
licence
GPL v3. © 2014 Matt Brennan