gulp-connect-multi

A fork of gulp-connect with multiple servers support
Gulp plugin connect to server, LiveReload and opening browser
Install
Install with npm.
npm install --save-dev gulp-connect-multi
Example
simplest
var gulp = connect = ; gulp; gulp;
connect + livereload + open + stylus
var gulp = stylus = connect = ; gulp; gulp; gulp; gulp; gulp;
all option
gulp;
multiple connects + livereload + open + stylus
var gulp = stylus = connect = ; var devServer = coverageServer = ; gulp; gulp; gulp; gulp; gulp; gulp;
coffee
gulp --require coffee-script/register
gulp = require"gulp"stylus = require"gulp-stylus"connect = require"gulp-connect-multi" gulptask "connect"connectserver root: 'app' port: 1337 livereload: true open: browser: "chrome" # if not working OS X browser: 'Google Chrome' gulptask "html"-> gulpsrc"./app/*.html"pipe connectreload gulptask "stylus"-> gulpsrc"./app/stylus/*.styl" pipestylus pipegulpdest"./app/css" pipe connectreload gulptask "watch"-> gulp watch "./app/*.html""html" gulp watch "./app/stylus/*.styl""stylus" gulptask "default" "connect" "stylus" "watch"
API
options.root
Type: Array
Default: ['app']
The root path
options.port
Type: Number
Default: 3000
The connect port
options.livereload
Type: Object or Boolean
Default: true
options.livereload.port
Type: Number
Default: 35729
options.open
Type: Object
Default: {}
options.open.file
Type: String
Default: index.html
The open file
options.open.browser
Type: String
Default: the system default browser
The type of browser, like chrome
License
MIT © Vladislav Derjavin dev@vld.me