diff options
author | Zac Echola <zac.echola@so.mnscu.edu> | 2014-11-10 21:38:35 +0300 |
---|---|---|
committer | Zac Echola <zac.echola@so.mnscu.edu> | 2014-11-10 21:38:35 +0300 |
commit | 34b397512cdaa11e70a8e82731a8a5d63613989f (patch) | |
tree | cb6863e3748632f30a6e17da676e451cfd93e5fb | |
parent | f0345e155b8d06bf34199d2370746e9289ebed9b (diff) | |
parent | c857146f19298a9bca2b702661fbd1269178583e (diff) |
Merge pull request #29 from zacechola/tweak_msgv0.5.1
displays message when files pass
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | tasks/bootlint.js | 2 | ||||
-rw-r--r-- | test/bootlint_test.js | 11 |
4 files changed, 15 insertions, 1 deletions
@@ -95,6 +95,7 @@ In lieu of a formal styleguide, take care to maintain the existing coding style. ## Release History +- 2014-11-10 - v0.5.1: Displays message when files pass - 2014-11-10 - v0.5.0: Updates Bootlint, adds line/col numbers to output, quieter output. - 2014-11-03 - v0.4.0: Updates Bootlint dependency. - 2014-10-17 - v0.3.0: Basic support for Bootlint 0.5.0. **Changes diff --git a/package.json b/package.json index 44ff29a..f93d5a5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "grunt-bootlint", "description": "A Grunt wrapper for Bootlint, the HTML linter for Bootstrap projects", - "version": "0.5.0", + "version": "0.5.1", "homepage": "https://github.com/zacechola/grunt-bootlint", "author": "Zac Echola <zac.echola@gmail.com>", "repository": { diff --git a/tasks/bootlint.js b/tasks/bootlint.js index 1f2d813..8338f79 100644 --- a/tasks/bootlint.js +++ b/tasks/bootlint.js @@ -68,6 +68,8 @@ module.exports = function(grunt) { if (hardfail) { grunt.fail.warn('Too many bootlint errors.'); } + } else { + grunt.log.ok(totalFileCount + ' file(s) lint free.'); } }); }); diff --git a/test/bootlint_test.js b/test/bootlint_test.js index 0a5a781..73ebeb5 100644 --- a/test/bootlint_test.js +++ b/test/bootlint_test.js @@ -54,5 +54,16 @@ exports.bootlint = { 'Should print correct number of lint errors and files'); test.done(); }); + }, + pass: function(test) { + test.expect(1); + grunt.util.spawn({ + grunt: true, + args: ['bootlint:pass', '--no-color'], + }, function(err, result) { + test.ok(result.stdout.indexOf('1 file(s) lint free.') >= 0, + 'Should print correct number of lint free files'); + test.done(); + }); } }; |