Dev namespace

Develop and debug Origami projects

The Dev namespace provides commands for developing with Origami. These commands are generally used in the CLI or build scripts.

When working in the CLI, all Dev commands are directly available as top-level globals to make them easier to type. Instead of having to type:

$ ori Dev.serve

you can invoke the serve command with

$ ori serve

Commands by name #

Dev.audit(tree)
Identify broken internal links and references
Dev.breakpoint(a)
Break into the JavaScript debugger, then return a
Dev.changes(old, new)
Return a tree of changes
Dev.copy(source, target)
Copy the source tree to the target
Dev.crawl(tree, base)
A tree of a site’s discoverable resources
Dev.debug(tree)
Add debug features to the tree
Dev.help(namespace|command)
Get help on builtin namespaces and commands
Dev.log(a, message)
Log message to the console and return a
Dev.serve(tree, port)
Start a web server for the tree
Dev.stdin
Returns the content of the standard input stream
Dev.svg(tree, options)
Render a tree visually in SVG format
Dev.version()
Return the version number of the Origami language
Dev.watch(tree, fn)
Reevaluate fn when tree changes