gulp-update-modul is a gulp plugin to update modules easily.
[En] gulp-update-modul is a plugin to auto update all node modules.
[Ru] gulp-update-modul предназначен для автоматического обновления всех установленных модулей в приложении.
gulp-update-modul provides simple updates all modules.
First, install gulp-update-modul
as dependency:
npm install gulp-update-modul --save-dev
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.
});
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.
});
-
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)] ?
-
-
Please to write
-
email - xor.wind@mail.ru