Skip to content

Commit

Permalink
make comments easier to comprehend
Browse files Browse the repository at this point in the history
  • Loading branch information
LoganArnett committed Feb 3, 2016
1 parent 30c4e53 commit 59ddc25
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions docs/recipes/running-task-steps-per-folder.md
Expand Up @@ -40,17 +40,12 @@ gulp.task('scripts', function() {
var folders = getFolders(scriptsPath);

var tasks = folders.map(function(folder) {
// concat into foldername.js
// write to output
// minify
// rename to folder.min.js
// write to output again
return gulp.src(path.join(scriptsPath, folder, '/**/*.js'))
.pipe(concat(folder + '.js'))
.pipe(gulp.dest(scriptsPath))
.pipe(uglify())
.pipe(rename(folder + '.min.js'))
.pipe(gulp.dest(scriptsPath));
.pipe(concat(folder + '.js')) // concat into foldername.js
.pipe(gulp.dest(scriptsPath)) // write to output
.pipe(uglify()) // minify
.pipe(rename(folder + '.min.js')) // rename to folder.min.js
.pipe(gulp.dest(scriptsPath)); // write to output again
});

// process all remaining files in scriptsPath root into main.js and main.min.js files
Expand Down

0 comments on commit 59ddc25

Please sign in to comment.