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
var through = require('through2'); | |
var matter = require('jade-var-matter'); | |
var jsonfile = require('jsonfile') | |
// Example -- sending jade files to writeToJson function | |
gulp.task('postsmeta', function() { | |
return gulp.src( jadesrc +'posts/*') | |
.pipe(writeToJson( | |
dest = jadesrc +'pages/data.json' // set file path | |
)) |