text: var gulp = require('gulp');
  var browserify = require('browserify');
  var source = require('vinyl-source-stream');
  var concat = require('gulp-concat');
  var uglify = require('gulp-uglify');
  var utilities = require('gulp-util');
  var del = require('del');
  
  
  var buildProduction = utilities.env.production;
  
  
  gulp.task('myTask', function(){
    console.log('hello gulp');
  });
  
  gulp.task('concatInterface', function() {
    // return gulp.src(['./js/browser.js', './js/signup-interface.js']) shortened below with a renaming of browser.js
    return gulp.src(['./js/*-interface.js'])
      .pipe(concat('allConcat.js'))
      .pipe(gulp.dest('./tmp'));
  });
  
  gulp.task('jsBrowserify', ['concatInterface'] , function() {
    return browserify({ entries: ['./tmp/allConcat.js'] })
      .bundle()
      .pipe(source('app.js'))
      .pipe(gulp.dest('./build/js'));
  });
  
  gulp.task("minifyScripts", ["jsBrowserify"], function(){
    return gulp.src("./build/js/app.js")
      .pipe(uglify())
      .pipe(gulp.dest("./build/js"));
  });
  
  gulp.task("clean", function(){
    return del(['build', 'tmp']);
  });
  
  gulp.task("build", ['clean'], function(){
    if (buildProduction) {
      gulp.start('minifyScripts');
    } else {
      gulp.start('jsBrowserify');
    }
  });
  