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-buildgenerator-wbgenerator-tools-seedgenerator-redux-observablegetmestartfoolishfoolish-revfoolish-ngforge-hearthfrontioforge-thecharlesframework7.angulargenerator-eap-appgenerator-mee-scripting-testgenerator-mean2-app-apigenerator-mcfly-ng2generator-ng2-webpackgenerator-angular-fullstackgenerator-angular-fullstack-componentgastropodgasseticfront-flow-clifrontend-buildergenaedu.emory.build-systemellipsis-gulpeasywebstarteclinteng-semantic-uiesds-buildelixir-pep
2.0.0

6 years ago

1.0.1

9 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