title: How to add a path prefix to globs passed to gulp.src?
body: <p>Consider the following two files:</p>
  
  <p>config.json</p>
  
  <pre><code>{
    "vendorFiles": [
      "vendor/angular/angular.js",
      "vendor/angular-ui-router/release/angular-ui-router.js",
      "vendor/angular-ui-utils/modules/utils.js"
    ]
  }
  </code></pre>
  
  <p>gulpfile.js</p>
  
  <pre><code>var gulp = require("gulp"),
      concat = require("gulp-concat"),
      config = require("./config");
  
  gulp.task("build-vendor", function() {
      gulp.src(config.vendorFiles)
          .pipe(concat("vendor.js"))
          .pipe(gulp.dest("build"));
  });
  </code></pre>
  
  <p>How can I eliminate the need to specify <code>vendor/</code> for each file in config.json? That file is one that is manually edited by other developers by hand, so I want to make it as hassle-free on them as possible.</p>
  
  <p>Ideally I'd like my gulpfile.js to take care of adding that prefix (somehow), and for my config.json to look like this:</p>
  
  <pre><code>{
    "vendorFiles": [
      "angular/angular.js",
      "angular-ui-router/release/angular-ui-router.js",
      "angular-ui-utils/modules/utils.js"
    ]
  }
  </code></pre>