title: gulp js src - copy and usage of base
body: <p>I have gulp task to copy js files</p>
  
  <p>This doesn't work</p>
  
  <pre><code>gulp.src('./**/*.js', {base: '../src/main/'})
      .pipe(gulp.dest('../target/dist'));
  </code></pre>
  
  <p>This works:</p>
  
  <pre><code>gulp.src('../src/main/**/*.js', {base: '../src/main/'})
          .pipe(gulp.dest('../target/dist'));
  </code></pre>
  
  <p>So whats the use of base here ? if i have to put whole path in first param, why should i use base ?</p>
  
  <p>is there any official documentation about gulp src ? is it worth using gulp over grunt with limited documentation ?</p>
  
  <p>[UPDATE BASED ON COMMENT]<br>
  Why am i using base ?</p>
  
  <p>Please read this
  <a href="https://stackoverflow.com/questions/21224252/looking-for-way-to-copy-files-in-gulp-and-rename-based-on-parent-directory">Looking for way to copy files in gulp and rename based on parent directory</a></p>
  
  <p>and moreoever gulp.src can take array of paths so i would need base. </p>