2.0.0 • Published 6 years ago

gulp-tap v2.0.0

Weekly downloads
60,147
License
MIT
Repository
github
Last release
6 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.buildtarot-slimwix-lucy-clixiaomin001testthinkdownjenniferjugsjugs-vuejb-gulp-lesshint-stylishkit-build-assetsimago.angularigem-wikibrickid-projectima-gulp-tasksgulp-lesshint-stylishgulp-jscs-stylishgulp-pipe-buildergulp-mmgulp-modular-releasegulp-poedit-to-jsongulp-polylintgulp-nucleusgulp-collategulp-drinkbargulp-registry-mrhenrygulp-fasttime-lintgulp-angular-projectgulp-buildershebspackhebspack-testheadstartgulp-setupgulp-lazy-pipelinesgulp-slurpgulp-uikitgulpack-jadegulpack-lsgulpack-puggulpack-sassimporterliferay-watchliferay-osgi-watchlisbakke-react-native-twilio-video-webrtclithium-sdkmaken-climagento-boilerplatemarmeladm-forgelucy-clikl-gulp-tasksmeec-workingmdtex-cli@wijs/frontend-gulp-tasks@wrethink/react-native-twilio-video-webrtc@wrethink/react-native-twilio-video-webrtc-wtk@ubiquits/toolchain@tiddh/brave-icons@zerothstack/toolchainampclickfunnelsampsalesfunnelsadgilearamsay-build1000-packages@14four/falcon@cobalt-engine/dev-build-strategy@cremadesign/captcha@colinrotherham/core@alicd/sugar@ampatspell/wireframefrontkitstofstik-coffee-projecttwriterui5-lib-util@battr/battr-buildyummy-flowyanatrawebpack-frontlinevirteom.public.common-gulp-tasks@literacyplanet/lambda_gulp_deploy@mrhenry/gulp-registry@salespreso/deck-gulp-tasks@rm-frontend/build-tools@polkas/my-component@pitcher/fomantic-ui@panacea/holon-climod-buildminecraft-addon-toolchainminecraft-addon-toolchain-browserifyminecraft-addon-toolchain-webpackminified-angularmongo-sites-apiminify-image
2.0.0

6 years ago

1.0.1

8 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

12 years ago

0.1.0

12 years ago