{"_id":"gulp-connect-multi","_rev":"7-0290ad0d2a36cfceaff5f35a926b5ab5","name":"gulp-connect-multi","description":"A fork of gulp-connect with multiple servers support","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.7":{"name":"gulp-connect-multi","version":"1.0.7","description":"A fork of gulp-connect with multiple servers support","license":"MIT","repository":{"type":"git","url":"git://github.com/torifat/gulp-connect"},"authors":[{"name":"Vladislav Derjavin","email":"dev@vld.me","url":"http://vld.me/"},{"name":"Rifat Nabi","email":"to.rifat@gmail.com","url":"http://rifatnabi.com/"},{"name":"Contributors","homepage":"https://github.com/torifat/gulp-connect/graphs/contributors"}],"engines":{"node":">=0.10.0"},"keywords":["gulpfriendly","connect","livereload","open","server","url","chrome","browser"],"dependencies":{"gulp-util":"~2.2.14","event-stream":"~3.1.0","connect-livereload":"~0.3.2","open":"0.0.4","tiny-lr":"0.0.5","connect":"~2.13.0"},"devDependencies":{"gulp":"~3.5.1","gulp-stylus":"0.0.11"},"bugs":{"url":"https://github.com/torifat/gulp-connect/issues"},"homepage":"https://github.com/torifat/gulp-connect","_id":"gulp-connect-multi@1.0.7","dist":{"shasum":"3472f5714f0416287c36109bd59ed6fbc3fd5c9a","tarball":"https://registry.npmjs.org/gulp-connect-multi/-/gulp-connect-multi-1.0.7.tgz","integrity":"sha512-QrFRg+UYbwXqDqkWsEIQPAnT1vvHbFfa14GNLqWLT0xbtpcTNhSx0243CJ7A+7PDlFBKpp/J03wrvrGuwOLBAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRHkiKgfWyhatyqSxecfT7kCnrUJmKzdCLizvOGyropgIgYaGXKBiPDy3yQ/TxhgYudFBKULIE71zzqm2EOr6Dwio="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"rifat","email":"to.rifat@gmail.com"},"maintainers":[{"name":"rifat","email":"to.rifat@gmail.com"}]},"1.0.8":{"name":"gulp-connect-multi","version":"1.0.8","description":"A fork of gulp-connect with multiple servers support","license":"MIT","repository":{"type":"git","url":"git://github.com/torifat/gulp-connect"},"authors":[{"name":"Vladislav Derjavin","email":"dev@vld.me","url":"http://vld.me/"},{"name":"Rifat Nabi","email":"to.rifat@gmail.com","url":"http://rifatnabi.com/"},{"name":"Contributors","homepage":"https://github.com/torifat/gulp-connect/graphs/contributors"}],"engines":{"node":">=0.10.0"},"keywords":["deprecated","connect","livereload","open","server","url","chrome","browser"],"dependencies":{"gulp-util":"~2.2.14","event-stream":"~3.1.0","connect-livereload":"~0.3.2","open":"0.0.4","tiny-lr":"0.0.5","connect":"~2.13.0"},"devDependencies":{"gulp":"~3.5.1","gulp-stylus":"0.0.11"},"bugs":{"url":"https://github.com/torifat/gulp-connect/issues"},"homepage":"https://github.com/torifat/gulp-connect","_id":"gulp-connect-multi@1.0.8","_shasum":"4a33137f3f7c13053f0a6a0d8f03fb08c19672aa","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"rifat","email":"to.rifat@gmail.com"},"maintainers":[{"name":"rifat","email":"to.rifat@gmail.com"}],"dist":{"shasum":"4a33137f3f7c13053f0a6a0d8f03fb08c19672aa","tarball":"https://registry.npmjs.org/gulp-connect-multi/-/gulp-connect-multi-1.0.8.tgz","integrity":"sha512-WapC2VLCAP6+ASqkDaB/B0e0aDzVyJMIkdE3PgNY69a8qgAQTvUDGH8nwYKxoZ6Du6v4o3GmSKB0G5P9rFhzvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCh2Yiz6edCRqc73mQHY+2Ymehqs/Ja32hr6NgOjjpxlwIhAKfshGwchdo7KzW3unpFguQgTrPBpoXcKO6o55/o7Rau"}]}}},"readme":"# [gulp](https://github.com/wearefractal/gulp)-connect-multi [![NPM version](https://badge.fury.io/js/gulp-connect-multi.png)](http://badge.fury.io/js/gulp-connect-multi) [![Dependency Status](https://david-dm.org/avevlad/gulp-connect.png)](https://david-dm.org/avevlad/gulp-connect) [![devDependency Status](https://david-dm.org/avevlad/gulp-connect.png)](https://david-dm.org/avevlad/gulp-connect#info=devDependencies)\n\n[![NPM](https://nodei.co/npm/gulp-connect-multi.png?downloads=true&stars=true)](https://nodei.co/npm/gulp-connect-multi/)\n\n> A fork of [gulp-connect](https://github.com/AveVlad/gulp-connect) with multiple servers support\n\n> Gulp plugin connect to server, LiveReload and opening browser\n\n## Install\n\nInstall with [npm](https://npmjs.org/).\n\n```\nnpm install --save-dev gulp-connect-multi\n```\n\n\n## Example\n\n## simplest\n```js\nvar gulp = require('gulp'),\n  connect = require('gulp-connect-multi')();\n\ngulp.task('connect', connect.server());\n\ngulp.task('default', ['connect']);\n```\n\n\n### connect + livereload + open + stylus\n```js\nvar\n  gulp = require('gulp'),\n  stylus = require('gulp-stylus'),\n  connect = require('gulp-connect-multi')();\n\ngulp.task('connect', connect.server({\n  root: ['app'],\n  port: 1337,\n  livereload: true,\n  open: {\n    browser: 'chrome' // if not working OS X browser: 'Google Chrome'\n  }\n}));\n\ngulp.task('html', function () {\n  gulp.src('./app/*.html')\n    .pipe(connect.reload());\n});\n\ngulp.task('stylus', function () {\n  gulp.src('./app/stylus/*.styl')\n    .pipe(stylus())\n    .pipe(gulp.dest('./app/css'))\n    .pipe(connect.reload());\n});\n\ngulp.task('watch', function () {\n  gulp.watch(['./app/*.html'], ['html']);\n  gulp.watch(['./app/stylus/*.styl'], ['stylus']);\n});\n\ngulp.task('default', ['connect', 'stylus', 'watch']);\n```\n\n**all option**\n\n```js\ngulp.task('connect', connect.server({\n  root: ['app', 'some_path'],\n  port: 1337,\n  livereload:{\n    port: 35729\n  },\n  open: {\n    file: 'index.html',\n    browser: 'firefox'\n  },\n  middleware: function(connect, o) {\n    return [\n      // ...\n    ]\n  }\n}));\n```\n\n### multiple connects + livereload + open + stylus\n```js\nvar\n  gulp = require('gulp'),\n  stylus = require('gulp-stylus'),\n  connect = require('gulp-connect-multi');\n\nvar devServer = connect(),\n    coverageServer = connect();\n\ngulp.task('connect', devServer.server({\n  root: ['app'],\n  port: 1337,\n  livereload: true,\n  open: {\n    browser: 'chrome' // if not working OS X browser: 'Google Chrome'\n  }\n}));\n\ngulp.task('coverage', coverageServer.server({\n  root: ['coverage'],\n  port: 1338,\n  livereload: false,\n  open: {\n    browser: 'chrome' // if not working OS X browser: 'Google Chrome'\n  }\n}));\n\ngulp.task('html', function () {\n  gulp.src('./app/*.html')\n    .pipe(devServer.reload());\n});\n\ngulp.task('stylus', function () {\n  gulp.src('./app/stylus/*.styl')\n    .pipe(stylus())\n    .pipe(gulp.dest('./app/css'))\n    .pipe(devServer.reload());\n});\n\ngulp.task('watch', function () {\n  gulp.watch(['./app/*.html'], ['html']);\n  gulp.watch(['./app/stylus/*.styl'], ['stylus']);\n});\n\ngulp.task('default', ['connect', 'stylus', 'watch']);\n```\n\n\n###coffee\n\n    gulp --require coffee-script/register\n\n```coffee\ngulp = require(\"gulp\")\nstylus = require(\"gulp-stylus\")\nconnect = require(\"gulp-connect-multi\")()\n\ngulp.task \"connect\", connect.server(\n  root: ['app']\n  port: 1337\n  livereload: true\n  open:\n    browser: \"chrome\" # if not working OS X browser: 'Google Chrome'\n)\n\ngulp.task \"html\", ->\n  gulp.src(\"./app/*.html\").pipe connect.reload()\n\ngulp.task \"stylus\", ->\n  gulp.src(\"./app/stylus/*.styl\")\n    .pipe(stylus())\n    .pipe(gulp.dest(\"./app/css\"))\n    .pipe connect.reload()\n\ngulp.task \"watch\", ->\n  gulp\n    .watch [\"./app/*.html\"], [\"html\"]\n  gulp\n    .watch [\"./app/stylus/*.styl\"], [\"stylus\"]\n\ngulp.task \"default\", [\n  \"connect\"\n  \"stylus\"\n  \"watch\"\n]\n```\n\n\n## API\n\n#### options.root\n\nType: `Array`\nDefault: `['app']`\n\nThe root path\n\n#### options.port\n\nType: `Number`  \nDefault: `3000`\n\nThe connect port\n\n#### options.livereload\n\nType: `Object or Boolean`  \nDefault: `true`\n\n#### options.livereload.port\n\nType: `Number`  \nDefault: `35729`\n\n\n#### options.open\n\nType: `Object`  \nDefault: `{}`\n\n#### options.open.file\n\nType: `String`  \nDefault: `index.html`\n\nThe open file\n\n#### options.open.browser\n\nType: `String`  \nDefault: the system default browser\n\nThe type of browser, like `chrome`\n\n\n## License\n\nMIT © Vladislav Derjavin <dev@vld.me>\n","maintainers":[{"name":"rifat","email":"to.rifat@gmail.com"}],"time":{"modified":"2022-06-18T16:49:58.590Z","created":"2014-03-10T18:15:25.884Z","1.0.7":"2014-03-10T18:15:25.884Z","1.0.8":"2014-04-21T06:14:45.194Z"},"homepage":"https://github.com/torifat/gulp-connect","keywords":["deprecated","connect","livereload","open","server","url","chrome","browser"],"repository":{"type":"git","url":"git://github.com/torifat/gulp-connect"},"bugs":{"url":"https://github.com/torifat/gulp-connect/issues"},"license":"MIT","readmeFilename":"README.md","users":{"kuzmicheff":true}}