Skip to content

Instantly share code, notes, and snippets.

@bhcleek
Created March 8, 2013 21:47
Show Gist options
  • Save bhcleek/5120162 to your computer and use it in GitHub Desktop.
Save bhcleek/5120162 to your computer and use it in GitHub Desktop.
Platform agnostic example of grunt-exec
exec:
run_server_tests:
command: () ->
path = require 'path'
testCommand = path.resolve 'path', 'to', 'something'
testCommandArgs = []
testCommandArgs.push 'arg1'
testCommandArgs.push 'arg2'
testCommandArgs.push 'arg3'
return testCommand + ' ' + testCommandArgs.join ' '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment