Skip to content

Instantly share code, notes, and snippets.

@jacopotarantino
Created November 12, 2015 21:58
Show Gist options
  • Save jacopotarantino/a2858eb4a04db547fe55 to your computer and use it in GitHub Desktop.
Save jacopotarantino/a2858eb4a04db547fe55 to your computer and use it in GitHub Desktop.
quick deploy an angular app to surge
#! /bin/bash
# test script to install and deploy a test application to surge.sh
# make sure node is up to date
brew update
brew upgrade node
# install node-based dependencies
npm install -g grunt-cli bower yo generator-karma generator-angular surge
# install ruby deps
gem install compass
# create a new test directory
cd
mkdir test_angular_app && cd $_
# scaffold the application
yo angular my-test-app
npm install karma jasmine-core phantomjs
# run tests
#deploy to surge
surge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment