text: var gulp = require('gulp');
  var uglify = require('gulp-uglify');
  var browserify = require('browserify');
  var source = require('vinyl-source-stream');
  var buffer = require('vinyl-buffer');
  var sourcemaps = require('gulp-sourcemaps');
  
  module.exports = function () {
      return browserify({
              entries: 'app/app.js',
              debug: true
          })
          .bundle()
          .pipe(source('app.js'))
          .pipe(buffer())
          .pipe(sourcemaps.init({loadMaps: true}))
          .pipe(sourcemaps.write('./'))
          .pipe(gulp.dest('dist/js'))
  };
  