Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Delete files and folders" recipe needs an example with pipes #729

Closed
adam-lynch opened this issue Oct 18, 2014 · 1 comment
Closed

"Delete files and folders" recipe needs an example with pipes #729

adam-lynch opened this issue Oct 18, 2014 · 1 comment

Comments

@adam-lynch
Copy link

I have an example but it's probably not the best suited for this:

gulp = require 'gulp'
$ = require('gulp-load-plugins')()
del = require 'del'
es = require 'event-stream'

# ...

gulp.task 'clean-prod', ->
    gulp.src paths.source.sitemaps()
        .pipe $.sitemapFiles paths.output.baseUrl()
        .pipe es.map (file, cb) ->
            del file.path, cb

(This relies on my gulp-sitemap-files)

The "Delete files and folders" recipe

@havenchyk
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants