Skip to content

Instantly share code, notes, and snippets.

@megawac
Created February 7, 2015 18:20
Show Gist options
  • Save megawac/5e1eb4bb0897c8410ce5 to your computer and use it in GitHub Desktop.
Save megawac/5e1eb4bb0897c8410ce5 to your computer and use it in GitHub Desktop.
marionette-travis script
#!/bin/bash
npm install -g grunt-cli
npm install
npm dedupe
if [[ -n "$UNDERSCORE" ]]
then
npm install underscore@"$UNDERSCORE"
fi
if [[ -n "$BACKBONE" ]]
then
npm install backbone@"$BACKBONE"
fi
if [[ -n "$LODASH" ]]
then
npm install lodash@"$LODASH"
# Lodash@2 and Lodash@3 have different file structures
if [[ "$LODASH" < "3.0" ]]
then
mv node_modules/lodash/lodash.js node_modules/underscore/underscore.js
else
mv node_modules/lodash/index.js node_modules/underscore/underscore.js
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment