Created
March 21, 2014 04:02
-
-
Save sumardi/9679300 to your computer and use it in GitHub Desktop.
Building Pebble watchapps with Grunt and Grunt-Shell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install -g grunt-cli | |
$ npm install --save-dev grunt-shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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