#!/usr/bin/env node var fs = require('fs'); var querystring = require('querystring'); var child_process = require('child_process'); function run(command, callback) { console.log(command); child_process.exec(command, callback); } // Use browserify to package up source-map-support.js fs.writeFileSync('.temp.js', 'sourceMapSupport = require("./source-map-support");'); run('node_modules/browserify/bin/cmd.js .temp.js', function(error, stdout) { if (error) throw error; // Wrap the code so it works both as a normal