diff --git a/gulpfile.js b/gulpfile.js index 3a053013..236bd88c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -23,7 +23,7 @@ var argv = require('yargs').argv; var server = require('./server.js').app; var minifyCss = require('gulp-minify-css'); var uglify = require('gulp-uglify'); - +var opn = require('opn'); var config = { @@ -73,6 +73,7 @@ gulp.task('js:build', function() { gulp.task('serve', ['browser-sync', 'run-server', 'sass:build', 'sass:watch', 'copy'], function() { bundle(true); + opn('http://www.localhost.com:3000'); }); gulp.task('jest', function(done) { @@ -93,7 +94,8 @@ gulp.task('browser-sync', function() { browserSync({ files: config.filesToWatch, proxy: 'http://localhost:4000', - port: 3000 + port: 3000, + open: false }); }); diff --git a/package.json b/package.json index 3887d336..b716d73a 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,7 @@ "lodash": "^3.9.3", "moment": "^2.10.6", "object-assign": "^2.0.0", + "opn": "^3.0.2", "q": "^1.4.1", "raven-js": "^1.1.19", "react": "^0.13.2",