Use gulp-open in serve task

master
Alexander Surma 2015-06-05 10:07:09 -07:00
parent 869e968a3b
commit 420a070502
2 changed files with 5 additions and 0 deletions

View File

@ -355,6 +355,7 @@ gulp.task('serve:browsersync', ['default'], function () {
gulp.task('serve', ['default'], function() {
$.connect.server({
root: 'dist',
port: 5000,
livereload: true
});
@ -365,6 +366,9 @@ gulp.task('serve', ['default'], function() {
gulp.watch(['src/**/README.md'], ['components']);
gulp.watch(['templates/**/*'], ['templates']);
gulp.watch(['docs/**/*'], ['pages', 'assets']);
gulp.src('./dist/index.html')
.pipe($.open('', {url: 'http://localhost:5000'}));
});
gulp.task('publish', function(cb) {

View File

@ -38,6 +38,7 @@
"gulp-marked": "^1.0.0",
"gulp-minify-html": "^1.0.0",
"gulp-mocha-phantomjs": "^0.6.1",
"gulp-open": "^0.3.2",
"gulp-rename": "^1.2.0",
"gulp-replace": "^0.5.3",
"gulp-sass": "^1.3.3",