I found a solution when creating a grunt.bat file that just calls grunt.cmd :
@ grunt.cmd% *
Therefore, on Windows, just the calling grunt runs the batch file, since it gets a higher priority than the Windows Scripting Host, which takes grunt.js . On Linux, ordinary binary grunt gets. Now for me it is a cross-platform platform.
source share