UglifyJS 2 transformer for James.js.
var james = require('james'),
uglify = require('james-uglify');
james.task('default', function() {
james.list('src/**/*.js').forEach(function(file) {
james.read(file)
.transform(uglify)
.write(process.stdout);
});
});
uglify(options)
: Return a new UglifyJS 2 transformer. Available options are listed in
Uglify documentation.