run node js scripts from gulp task

Viewed 9160

I have many js scripts in one folder (scripts/*.js). How to execute them all from the gulp task (instead of using 'node script.js' many times)?

something like

gulp.task('exec_all_scripts', function () {
  gulp.src(path.join(__dirname, './scripts/*.js'))
})
3 Answers
Related