Skip to content

Commit

Permalink
Build: Fail on bootlint warnings
Browse files Browse the repository at this point in the history
This aborts the build if the bootlint task runs into any warnings (in line with how the other linters work). It'll show all issues it found before failing.

Should make it much more obvious if any future changes introduce bootlint warnings.

Partial port of wet-boew/wet-boew#8739 (GCWeb already fails on bootlint errors).
  • Loading branch information
EricDunsworth committed Oct 18, 2019
1 parent 1b37ef6 commit 10d8d9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,8 @@ module.exports = (grunt) ->
all:
options:
stoponerror: true
stoponwarning: true
showallerrors: true
relaxerror: [
# We recommend handling this through the server headers so it never appears in the markup
"W002" # `<head>` is missing X-UA-Compatible `<meta>` tag that disables old IE compatibility modes
Expand Down Expand Up @@ -805,6 +807,8 @@ module.exports = (grunt) ->
bootstrap4:
options:
stoponerror: true
stoponwarning: true
showallerrors: true
relaxerror: [
# We recommend handling this through the server headers so it never appears in the markup
"W002" # `<head>` is missing X-UA-Compatible `<meta>` tag that disables old IE compatibility modes
Expand Down

0 comments on commit 10d8d9d

Please sign in to comment.