From 59ddc255496b5b5881c5f471973c1842b5ac7a4c Mon Sep 17 00:00:00 2001 From: Logan Arnett Date: Wed, 3 Feb 2016 10:14:40 -0500 Subject: [PATCH] make comments easier to comprehend --- docs/recipes/running-task-steps-per-folder.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/docs/recipes/running-task-steps-per-folder.md b/docs/recipes/running-task-steps-per-folder.md index b1bf4632c..2a3113eed 100644 --- a/docs/recipes/running-task-steps-per-folder.md +++ b/docs/recipes/running-task-steps-per-folder.md @@ -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