Skip to content
Advertisement

Running a shell command from gulp

I would like to run a shell command from gulp, using gulp-shell. I see the following idiom being used the gulpfile.

Is this the idiomatic way to run a command from a gulp task?

JavaScript

Advertisement

Answer

gulp-shell has been blacklisted. You should use gulp-exec instead, which has also a better documentation.

For your case it actually states:

Note: If you just want to run a command, just run the command, don’t use this plugin:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement