2.0.0 • Published 5 years ago

gulp-tap v2.0.0

Weekly downloads
60,147
License
MIT
Repository
github
Last release
5 years ago

gulp-tap Build Status Coverage Status Dependencies Status

Easily tap into a pipeline.

Install

npm install gulp-tap --save-dev

Uses

Some filters like gulp-coffee process all files. What if you want to process all JS and Coffee files in a single pipeline. Use tap to filter out .coffee files and process them through the coffee filter and let JavaScript files pass through.

gulp.src("src/**/*.{coffee,js}")
    .pipe(tap(function(file, t) {
        if (path.extname(file.path) === '.coffee') {
            return t.through(coffee, []);
        }
    }))
    .pipe(gulp.dest('build'));

What if you want to change content like add a header? No need for a separate filter, just change the content.

tap(function(file) {
    file.contents = Buffer.concat([
        new Buffer('HEADER'),
        file.contents
    ]);
});

If you do not return a stream, tap forwards your changes.

Examples

See Wiki for more examples.

License

The MIT License (MIT)

lpbteditorconfig-lint-jsadgile-dev@somoscuatro/gulp-wordpress-themejoyerfomantic-ui-semeia@infinitebrahmanuniverse/nolb-gulp-t@everything-registry/sub-chunk-1812plus.webclient.buildjugsjugs-vuecompagescoffee-projectcwi-shp-cieclintembrace-gulp-less-reportereng-semantic-uiesds-buildfeflow-devkit-mpnative-startkitfe-gulpfeds-boilerplate-webfeds-build-viewsellipsis-gulpelixir-pepeasywebstartedu.emory.build-systemfomantic-uifoolishfoolish-revfoolish-ngframework7.angulargulp-collategulp-jscs-stylishgulp-drinkbargulp-lazy-pipelinesgulp-lesshint-stylishgulp-fasttime-lintgulp-angular-projectgulp-buildersgulp-poedit-to-jsongulp-polylintgulp-slurpgulp-pipe-buildergenagenerator-redux-observablegenerator-tools-seedgenerator-mean2-app-apigenerator-mee-scripting-testgenerator-mcfly-ng2generator-ng2-webpackgenerator-angular-fullstackgenerator-angular-fullstack-componentgenerator-eap-appgasseticgastropodgenerator-wbgetmestartfront-flow-clifrontend-builderfrontioforge-thecharlesforge-hearthgulp-modular-releasegulp-nucleusgulp-mmgulp-registry-mrhenrygulp-setupgulp-uikitgulpack-jadegulpack-lsgulpack-puggulpack-sassimportergoldfish-compilerdependency-installheadstarthebspackhebspack-testigem-wikibrickima-gulp-tasksid-projectimago.angularpostcss-middlewareproactive-gulp-packpremailplantingjspuzle-shapeshifterfrontkit@erchaves/sugarcone@ekolabs/project-kitm-forgelucy-clilisbakke-react-native-twilio-video-webrtclithium-sdkmaken-cliliferay-watchliferay-osgi-watchkl-gulp-tasksjb-gulp-lesshint-stylishjenniferkit-build-assets
2.0.0

5 years ago

1.0.1

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

11 years ago

0.1.0

11 years ago