Skip to content

Instantly share code, notes, and snippets.

@snhasani
Last active August 29, 2015 14:12
Show Gist options
  • Save snhasani/d4717e223b7eb60052dd to your computer and use it in GitHub Desktop.
Save snhasani/d4717e223b7eb60052dd to your computer and use it in GitHub Desktop.
Gulpfile for PhoneGap App on Ripple
var gulp = require('gulp');
var path = require('path');
var o = require('open');
var ripple = require('ripple-emulator');
var webPath = function (p) { return path.join('./www/', p); };
// The default task
gulp.task('default', function() {
var options = {
keepAlive: false,
open: true,
port: 4400
};
// Start the ripple server
ripple.emulate.start(options);
if (options.open) {
o('http://localhost:' + options.port + '?enableripple=cordova-4.1.2');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment