This guide covers pretty much all that you need to have installed in your Mac for a top notch front-end coding environment.
This guide also assumes that you are going to use yeoman or grunt for your project.
It is recommended that you have Xcode installed and it's Command Line Tools to give you any command line binary that you might need (such as wget). You can also download it within Xcode itself