Gathering detailed insights and metrics for gulp-connect
Gathering detailed insights and metrics for gulp-connect
Gathering detailed insights and metrics for gulp-connect
Gathering detailed insights and metrics for gulp-connect
npm install gulp-connect
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (50.8%)
CoffeeScript (43.81%)
Shell (5.39%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
631 Stars
336 Commits
112 Forks
13 Watchers
17 Branches
53 Contributors
Updated on Mar 05, 2025
Latest Version
5.7.0
Package Id
gulp-connect@5.7.0
Size
158.29 kB
NPM Version
6.4.1
Node Version
11.2.0
Published on
Dec 06, 2018
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Gulp plugin to run a webserver (with LiveReload)
gulp-connect is sponsored by JetBrains!
npm install --save-dev gulp-connect
1var gulp = require('gulp'), 2 connect = require('gulp-connect'); 3 4gulp.task('connect', function() { 5 connect.server(); 6}); 7 8gulp.task('default', ['connect']);
1var gulp = require('gulp'), 2 connect = require('gulp-connect'); 3 4gulp.task('connect', function() { 5 connect.server({ 6 root: 'app', 7 livereload: true 8 }); 9}); 10 11gulp.task('html', function () { 12 gulp.src('./app/*.html') 13 .pipe(gulp.dest('./app')) 14 .pipe(connect.reload()); 15}); 16 17gulp.task('watch', function () { 18 gulp.watch(['./app/*.html'], ['html']); 19}); 20 21gulp.task('default', ['connect', 'watch']);
1gulp.task('jenkins-tests', function() { 2 connect.server({ 3 port: 8888 4 }); 5 // run some headless tests with phantomjs 6 // when process exits: 7 connect.serverClose(); 8});
1var gulp = require('gulp'), 2 stylus = require('gulp-stylus'), 3 connect = require('gulp-connect'); 4 5gulp.task('connectDev', function () { 6 connect.server({ 7 name: 'Dev App', 8 root: ['app', 'tmp'], 9 port: 8000, 10 livereload: true 11 }); 12}); 13 14gulp.task('connectDist', function () { 15 connect.server({ 16 name: 'Dist App', 17 root: 'dist', 18 port: 8001, 19 livereload: true 20 }); 21}); 22 23gulp.task('html', function () { 24 gulp.src('./app/*.html') 25 .pipe(gulp.dest('./app')) 26 .pipe(connect.reload()); 27}); 28 29gulp.task('stylus', function () { 30 gulp.src('./app/stylus/*.styl') 31 .pipe(stylus()) 32 .pipe(gulp.dest('./app/css')) 33 .pipe(connect.reload()); 34}); 35 36gulp.task('watch', function () { 37 gulp.watch(['./app/*.html'], ['html']); 38 gulp.watch(['./app/stylus/*.styl'], ['stylus']); 39}); 40 41gulp.task('default', ['connectDist', 'connectDev', 'watch']);
If the http2 package is installed and you use an https connection to gulp connect then http 2 will be used in preference to http 1.
Type: Array or String
Default: Directory with gulpfile
The root path
Type: Number
Default: 8080
The connect webserver port
Type: String
Default: localhost
Type: String
Default: Server
The name that will be output when the server starts/stops.
Type: Object
Default: false
Can be any options documented at https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
When https is just set to true
(boolean), then internally some defaults will be used.
Type: Object or Boolean
Default: false
Type: Number
Default: 35729
Overrides the hostname of the script livereload injects in index.html
Type: String
Default: 'undefined'
Type: String
Default: undefined
Fallback file (e.g. index.html
)
Type: Function
Default: []
Type: Boolean
Default: false
Type: Boolean or String of a new index pass or Array of new indexes in preferred order
Default: true
1gulp.task('connect', function() { 2 connect.server({ 3 root: "app", 4 middleware: function(connect, opt) { 5 return [ 6 // ... 7 ] 8 } 9 }); 10});
To contribute to this project, you must have CoffeeScript installed: npm install -g coffee-script
.
Then, to build the index.js
file, run coffee -o . -bc src/
. Run npm test
to run the tests.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 4/18 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
33 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More