jade for npm scripts
sudo npm install -d
node index.js
var jade = require('jade');
var vfs = require('vinyl-fs');
var map = require('map-stream');
var Buffer = require('buffer').Buffer;
vfs.src(['./folder1/**/**/*.jade'])
.pipe(map( (data, callback) => {
preHtml = data.contents.toString('utf8');
html = jade.render(preHtml);
data.contents = new Buffer(html);
callback(null, data);
}))
.pipe(vfs.dest('./output/'));