Use gulp-open in serve task
parent
869e968a3b
commit
420a070502
|
@ -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) {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue