title: Browserify adding unwanted directories
body: <p>Setting up gulp for the first time. I've got it correctly compiling the files, it's just sticking them in the wrong place, and I can't quite figure out what to change to get it right.</p>
  
  <p>After they compile, I have it adding the .conveyor.js suffix and then I want it to place them in the /scripts directory. But it's placing them in /scripts/src/js/ — it's adding a couple subdirectories. The raw dev files themselves are in src/js/ directories in a separate location, but I don't want that to carry over. Here's my gulp setup:</p>
  
  <pre><code>module.exports = function() {
      var files = [
          './src/js/dashboard.js',
          './src/js/pages.js',
          './src/js/poll.js'
      ];
  
      var tasks = files.map(function(entry) {
          return browserify({ 
              entries: [entry],
              paths: ['./node_modules', './src/js/']
          })
          .bundle()
          .pipe(source(entry))
          .pipe(rename({
              extname: '.conveyor.js'
          }))
          .pipe(gulp.dest('../scripts/')); 
      });
  
      return es.merge.apply(null, tasks);
  };
  </code></pre>
  
  <p>The way I understand it, "files" are all of the files it looks for to compile. "paths" allow you to specify directories that your require statements can be relative to so you don't have to do a bunch of period-forwardslashing. and then "dest" is where you want the files to end up. But I'm clearly misunderstanding something.</p>