1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/gulp-nop
詹力 1a19ec897f 删除无关模块 2024-01-16 21:26:16 +08:00
..
node_modules 删除无关模块 2024-01-16 21:26:16 +08:00
test i4 2023-12-18 13:12:25 +08:00
.npmignore i4 2023-12-18 13:12:25 +08:00
.travis.yml i4 2023-12-18 13:12:25 +08:00
LICENSE i4 2023-12-18 13:12:25 +08:00
README.md i4 2023-12-18 13:12:25 +08:00
index.js i4 2023-12-18 13:12:25 +08:00
package.json 删除无关模块 2024-01-16 21:26:16 +08:00

README.md

gulp-nop Build Status

«No operation». Useful when you want primitive conditional execution in a long pipeline.

This plugin happened to exist just because gulp and gulp-util are two different packages in different repositories and I've overlooked noop() from gulp-util package. You probably should use gulp-util.

From the other side, it is a bit lighter than gulp-util package and if you need just «no operation» from there, here it is.

Install:

npm install gulp-nop --save-dev

Example:

var nop = require('gulp-nop');

gulp.task('some-task', function() {
    return gulp.src(['some files'])
        .pipe(some())
        .pipe(tasks())
        .pipe(along())
        .pipe(minify ? minified() : nop())
        .pipe(pipeline())
        .pipe(gulp.dest('./build'));
});