After trying gulp-exec, gulp-shell and gulp-nodemon, I'm still puzzled how should I do simple node script execution with gulp.
$ node script.js
With gulp-nodemon execution is easy, but I don't need monitoring features (docs did not specify how to handle batch type of execution). gulp-shell and gulp-exec failed to execute node script when tested in Windows environment.
This is better asked on StackOverflow. Those gulp tasks should in theory work fine. Tag with gulp. Also make sure to include what you tried with some code ;)
@sindresorhus I understrand, this was completely wrong forum for this question.
If others stumble upon this, here is a solution:
https://github.com/sun-zheng-an/gulp-shell/issues/11
Note that gulp-shell is blacklisted, and typically require('child_process').exec is sufficient, removing the need for any plugins. See https://github.com/robrich/gulp-exec/blob/master/README.md#usage
Most helpful comment
Note that gulp-shell is blacklisted, and typically
require('child_process').execis sufficient, removing the need for any plugins. See https://github.com/robrich/gulp-exec/blob/master/README.md#usage