Port gulp bundle helper from browserify-sandbox.