I am the sole front-end developer at a company where engineers use Eclipse for all things code. I have a great grunt build tool for the front-end code set up, and I'm fine using the commandline + text editor. However I'm trying to find a way for the other developers to be able to build and deploy the front-end code locally via eclipse.
I found this very helpful article for how to use Grunt as a external tool in eclipse for windows. However, other developers have Linux or Macs. Another stack overflow question deals with how to run an application via eclipse external tool. Trying to the mix the two concepts I created a builder with the following properties:
- Location: /usr/bin/open
- Working Directory: ${project_loc}
- Arguments: -a /Applications/Utilities/Terminal.app grunt buildAndServe
However, the eclipse console complains that "The files [project dir]/grunt and [project dir]/buildAndServe do not exist."
Eclipse seems to be expecting me to call the terminal app with a list of files separated by spaces, but what I want to do is pass an argument that will run the "grunt buildAndServe" command just like I would run it from the command line in the project directory.