
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
gulp-nodemon
Advanced tools
A gulp task that will re-load your node script when it changes. Perfect for development.
nodemon([options])
You can pass an object to gulp-nodemon with options specified in nodemon config.
Example below will start server.js
in development
mode and watch for changes, as well as watch all .html
and .js
files in the directory.
{
script: 'server.js'
, ext: 'js html'
, env: { 'NODE_ENV': 'development' }
}
gulp-nodemon returns a stream just like any other NodeJS stream, except for the on
method, which conveniently takes gulp task names to execute.
.on([event], [tasks])
[event]
is an event name as a string. (see: nodemon events)[tasks]
A gulp task name, array of gulp task names, or a function to execute.The following example will run your code with nodemon and lint it when your make changes.
// Gulpfile.js
var gulp = require('gulp')
, nodemon = require('gulp-nodemon')
, jshint = require('gulp-jshint')
gulp.task('lint', function () {
gulp.src('./**/*.js')
.pipe(jshint())
})
gulp.task('develop', function () {
nodemon({ script: 'server.js', ext: 'html js', ignore: ['ignored.js'] })
.on('restart', ['lint'])
})
FAQs
it's gulp + nodemon + convenience
The npm package gulp-nodemon receives a total of 25,305 weekly downloads. As such, gulp-nodemon popularity was classified as popular.
We found that gulp-nodemon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.