Guest User

Untitled

a guest
Jun 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. let fileNames = [];
  2. let commands = [];
  3. gulp.task('files', () => {
  4. gulp.src('/tests/*test.js').on('data', () => fileNames.push(data.relative))
  5. });
  6. function commands(){
  7. fileNames.forEach( (name) => commands.push(gulp.src(name).выполнениеКоманды))
  8. };
  9. commands();
  10. gulp.task('run', gulp.parallel(fileNames.forEach( command => command)));
Add Comment
Please, Sign In to add comment