Skip to content

Commit

Permalink
Force options to booleans and try to fix jade bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Litwin committed Dec 4, 2015
1 parent 21c242b commit b117a06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions tasks/jade.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defaultJadeFiles = [
]
defaultTempFolder = '.tmp'
defaultJadeData = null
defaultJadeReplace = {}
defaultJadeReplace = pattern: ['', '']
defaultJadeOptions =
pretty: false

Expand All @@ -27,11 +27,9 @@ module.exports = (gulp, $, configs) ->
getData = (file) ->
jadeData



jade = $.jade options
data = $.data getData
replace = $.if !!jadeReplace, $.replace.apply(jadeReplace.pattern)
replace = $.if !!jadeReplace, $.replace(jadeReplace.pattern[0], jadeReplace.pattern[1])
plumber = $.plumber errorHandler: onError
src = gulp.src jadeFiles
dest = gulp.dest tempFolder
Expand Down
4 changes: 2 additions & 2 deletions tasks/scss.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = (gulp, $, configs) ->
src
.pipe sourceMaps
.pipe scss
.pipe($.if(autoprefixerOps, autoprefixer))
.pipe($.if(replaceOptions, replace))
.pipe($.if(!!autoprefixerOps, autoprefixer))
.pipe($.if(!!replaceOptions, replace))
.pipe soureceMapsWrite
.pipe dest

0 comments on commit b117a06

Please sign in to comment.