Skip to content

Instantly share code, notes, and snippets.

@leocosta
Last active December 15, 2015 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leocosta/5229549 to your computer and use it in GitHub Desktop.
Save leocosta/5229549 to your computer and use it in GitHub Desktop.
Configuring yeoman + angular generator + karma generator + phantomJS
#configuring phantomJS
$ cd /usr/local
$ sudo git clone git://github.com/ariya/phantomjs.git && cd phantomjs
$ sudo ./build.sh
sudo ln -s /usr/local/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
export PHANTOMJS_BIN=/usr/local/bin/phantomjs
#installing ruby + compass (recommended tools by running)
ruby install (see rvm installation at https://rvm.io/rvm/install/)
gem install compass
#installing grunt + yeoman + bower
npm install -g yo grunt-cli bower
#installing yeoman generators
npm install generator-angular generator-karma
# scaffold out a AngularJS project
yo angular
# installing default dependencies
npm install && bower install
# installing a dependency for your project from Bower
bower install angular-ui
# testing app
grunt test
# previewing app
grunt server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment