From 9aa47a5de4bf6e06d3504bac7bfbc1ae0a1f05fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Mon, 31 Aug 2015 17:55:27 +0200 Subject: [PATCH] open localhost.com:3000 instead of localhost:3000 --- gulpfile.js | 6 ++++-- package.json | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) 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",