After using Grunt for a couple of projects I decided to give Gulp a try.
Most of the projects we work on are Python based, and the way we usually run them from the command line is: 'python manage.py runserver'
With Grunt, i found the grunt-bg-shell plugin, and was able to run my command like this:
// see: https://npmjs.org/package/grunt-bg-shell
bgShell: {
_defaults: {
bg: true
},
runDjango: {
cmd: 'python <%= paths.manageScript %> runserver 0.0.0.0:<%= port %>'
//cmd: 'python <%= paths.manageScript %> runserver'
}
}
grunt.registerTask('serve', [
'bgShell:runDjango',
'watch'
]);
Unfortunately, so far i have been unable to find a similar plugin for Gulp. I've tried gulp-shell, gulp-run, gulp-exec, all to no avail. With most im able to print my string on the console, but i havent been able to run the actual command.
Any ideas ?