Skip to content

Yuriy-Svetlov/gulp-update-modul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-update-modul

gulp-update-modul is a gulp plugin to update modules easily.

NPM

build status

Image

[En] gulp-update-modul is a plugin to auto update all node modules.

[Ru] gulp-update-modul предназначен для автоматического обновления всех установленных модулей в приложении.

Install

gulp-update-modul provides simple updates all modules.

First, install gulp-update-modul as dependency:

npm install  gulp-update-modul --save-dev

Usage

Then, add it to your gulpfile.js:

var upmodul = require("gulp-update-modul");

gulp.task('update-modul', function () {
    gulp.src('package.json')
    .pipe(upmodul('latest', 'false')); //update all modules latest version.
});

Example

var upmodul = require("gulp-update-modul");


//watch
gulp.task('watch', function () {
    gulp.start('update-modul');
});

//update-modul
gulp.task('update-modul', function () {
    gulp.src('package.json')
    .pipe(upmodul('latest', 'false')); //update all modules latest version.
});
var upmodul = require("gulp-update-modul");


//watch
gulp.task('watch', function () {
    gulp.start('update-modul');
});

//update-modul
gulp.task('update-modul', function () {
    gulp.src('package.json')
    .pipe(upmodul('latest, true')); //update all modules latest version.
});

API

upmodul('version, process')

  • Version

    • latest ('Default')

      Update all modules 'latest' version.

    • wanted

      Update to all modules 'wanted' version.

  • Process

    • true ('Default')

      Update in auto mode.

    • false

      Asks: Do you want to update: packagename [Y(yes)/N(no)] ?

Bugs

License

MIT License

About

gulp-update-modul is a plugin to auto update all node modules.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published