title: Loop through array and generate Gulp tasks
body: <p>Im trying to generate my gulp tasks instead of statically writing them .I would like to loop through an array and generate gulp tasks based on the item in the array.</p>
  
  <p>Something like this , any help will be appreciated !</p>
  
  <pre><code>var brands  = ['google','facebook','twitter']
  
  
  brands.forEach(function (brand) {
    gulp.task(brand, function() {
      return gulp.src('./'+ brand + '.scss')
         .pipe(rename('var.scss'))
         .pipe(gulp.dest('./styles/tmp'));
    })
  })
  </code></pre>