Skip to content

Instantly share code, notes, and snippets.

@matthewtole
Created November 7, 2013 00:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewtole/7346696 to your computer and use it in GitHub Desktop.
Save matthewtole/7346696 to your computer and use it in GitHub Desktop.
Sample build script for a Pebble SDK 2.0 app using Javascript.
jshint js/main.js || { exit 1; }
jshint pebble/appinfo.json || { exit 1; }
uglifyjs js/libs/firebase.js js/libs/superagent.js js/main.js -o pebble/src/js/pebble-js-app.js
cd pebble
pebble clean
pebble build || { exit 1; }
rm src/js/pebble-js-app.js || { exit 1; }
if [ "$1" = "install" ]; then
pebble install --logs
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment