Last active
August 29, 2015 14:12
-
-
Save snhasani/d4717e223b7eb60052dd to your computer and use it in GitHub Desktop.
Gulpfile for PhoneGap App on Ripple
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
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