I\'m using Grunt (task-based command line build tool for JavaScript projects) in my project. I\'ve created a custom tag and I am wondering if it is possible to run a command
Guys are pointing child_process, but try to use execSync to see output..
grunt.registerTask('test', '', function () { var exec = require('child_process').execSync; var result = exec("phpunit -c phpunit.xml", { encoding: 'utf8' }); grunt.log.writeln(result); });