var gulp = require("gulp"); var open = require("../"); gulp.task("simple", function(){ gulp.src("./index.html") .pipe(open()); }); gulp.task("template", function(){ gulp.src("./second.html") .pipe(open("<%file.path%>")); }); gulp.task("open", function(){ var options = { app: "google-chrome" }; gulp.src("./*.html") .pipe(open("file://<%= file.path %>", options)); }); gulp.task("default", function(){ gulp.run("simple", "template","open"); });