diff --git a/.gitignore b/.gitignore index b785247..7bdfc1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules npm-debug.log tmp +.idea \ No newline at end of file diff --git a/README.md b/README.md index 7373e14..ade013b 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,12 @@ Default value `0` Whether to use HTTPS +#### options.force +Type: `Boolean` +Default value `true` + +Kill other running instances of BrowserStack Local. + ### Usage Examples #### Custom Options diff --git a/tasks/browserstack_tunnel.js b/tasks/browserstack_tunnel.js index bfc98c8..eb387b0 100644 --- a/tasks/browserstack_tunnel.js +++ b/tasks/browserstack_tunnel.js @@ -5,7 +5,8 @@ module.exports = function(grunt) { accessKey: '', hostname: 'localhost', port: 3000, - sslFlag: 0 + sslFlag: 0, + force: true }); var BrowserStackTunnel = require('browserstacktunnel-wrapper'); @@ -15,7 +16,8 @@ module.exports = function(grunt) { name: options.hostname, port: options.port, sslFlag: options.sslFlag - }] + }], + force: options.force }); var done = this.async();