Created
August 23, 2016 14:21
-
-
Save kristelteng/dbbd05a6e99d766426f4a422da32c1fb to your computer and use it in GitHub Desktop.
extract tarball, convert md to html and save on disk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('extractTarball', async function() { | |
let markdownStream = lazypipe() | |
.pipe(markdown) | |
.pipe(pug, {template: 'layout/layout.pug'}); | |
let tarStream = await tarball.getTarball(); | |
let tarPipe = tarStream | |
.pipe(extract()) | |
.pipe(gulpif('*.md', markdownStream())) | |
.pipe(gulp.dest('src/reference/test')); | |
return tarPipe; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment