Skip to content

Instantly share code, notes, and snippets.

@rchild-okta
rchild-okta / gist:728e4b53fa0666578a61
Created June 17, 2014 05:39
Walks through mvc directory and converts to commonJs style
// This script will take an input mvc directory, walk it, and write out
// to an out directory (for testing). Should be easy to write back to the
// original file.
var DIR_MVC = '/Users/rchild/okta/okta-core/WebContent/js/mvc'
, DIR_OUT = path.normalize(__dirname + '/out')
, formatStyle = yoda;
var fs = require('fs')
, R = require('ramda')
, file = require('file')