mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Fix gulp jade
so it doesn't complain on undefined locals.
This commit is contained in:
parent
fe7452e9f7
commit
b38972eeeb
1 changed files with 9 additions and 1 deletions
10
gulpfile.js
10
gulpfile.js
|
@ -154,7 +154,15 @@ gulp.task('jade', function (cb) {
|
||||||
gulp.src([
|
gulp.src([
|
||||||
'./res/**/*.jade', '!./res/bower_components/**'
|
'./res/**/*.jade', '!./res/bower_components/**'
|
||||||
])
|
])
|
||||||
.pipe(jade())
|
.pipe(jade({
|
||||||
|
locals: {
|
||||||
|
// So res/views/docs.jade doesn't complain
|
||||||
|
markdownFile: {
|
||||||
|
parseContent: function() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}))
|
||||||
.pipe(gulp.dest('./tmp/html/'))
|
.pipe(gulp.dest('./tmp/html/'))
|
||||||
cb()
|
cb()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue