Skip to content

Instantly share code, notes, and snippets.

@sumardi
Created March 21, 2014 04:02
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 sumardi/9679300 to your computer and use it in GitHub Desktop.
Save sumardi/9679300 to your computer and use it in GitHub Desktop.
Building Pebble watchapps with Grunt and Grunt-Shell.
$ npm install -g grunt-cli
$ npm install --save-dev grunt-shell
module.exports = function(grunt) {
grunt.initConfig({
phoneIP: '192.168.1.100',
// set logs: '' to turn off logging
logs: '--logs',
shell: {
buildAndInstall: {
options: {
stdout: true,
stderr: true
},
command: 'pebble build; pebble install --phone=<%= phoneIP %> <%= logs %>'
}
}
});
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default', ['shell']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment