so I have this javascript file that I can currently run with the cmd node runfile.js accountName
.
I am trying to make a grunt task that will loop through an array of accountNames to pass into this cmd using grunt-exec.
I am pretty new to grunt and apologize if this is not worded well. Any help is very appreciated!
Current grunt file looks like:
grunt.initConfig({
exec: {
login: function(acct){
return 'node runfile.js' + acct;
}
},
});