gulp-csslint
Advanced tools
Comparing version 0.1.3 to 0.1.4
15
index.js
@@ -13,3 +13,3 @@ /*jshint node:true */ | ||
if (!report.messages.length) { | ||
return { | ||
return { | ||
success: true | ||
@@ -85,4 +85,2 @@ }; | ||
var plural = errorCount === 1 ? '' : 's'; | ||
process.stderr.write('\x07'); // Send a beep to the terminal so it bounces | ||
@@ -129,2 +127,13 @@ gutil.log(c.cyan(errorCount)+' error'+plural+' found in '+c.magenta(file.path)); | ||
cssLintPlugin.failReporter = function(){ | ||
return es.map(function (file, cb) { | ||
// Nothing to report or no errors | ||
if (!file.csslint || file.csslint.success) { | ||
return cb(null, file); | ||
} | ||
return cb(new gutil.PluginError('gulp-csslint', 'CSSLint failed for '+file.relative), file); | ||
}); | ||
}; | ||
module.exports = cssLintPlugin; |
{ | ||
"name": "gulp-csslint", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "CSSLint plugin for gulp", | ||
"main": "index.js", | ||
"dependencies": { | ||
"csslint": "~0.10.0", | ||
"gulp-util": "~1.2.0", | ||
"event-stream": "~3.0.18" | ||
"csslint": "^0.10.0", | ||
"event-stream": "^3.1.2", | ||
"gulp-util": "^2.2.14" | ||
}, | ||
"devDependencies": { | ||
"should": "~2.1.1", | ||
"mocha": "~1.15.1" | ||
"mocha": "^1.18.2", | ||
"should": "^3.3.1" | ||
}, | ||
@@ -15,0 +15,0 @@ "scripts": { |
@@ -82,3 +82,3 @@ # gulp-csslint [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] | ||
gulp.task('lint', function() { | ||
gulp.files('lib/*.js') | ||
gulp.files('lib/*.css') | ||
.pipe(csslint()) | ||
@@ -85,0 +85,0 @@ .pipe(csslint.reporter(customReporter)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11546
257
+ Addedansi-regex@0.2.1(transitive)
+ Addedansi-styles@1.1.0(transitive)
+ Addedarray-find-index@1.0.2(transitive)
+ Addedcamelcase@2.1.1(transitive)
+ Addedcamelcase-keys@2.1.0(transitive)
+ Addedchalk@0.5.1(transitive)
+ Addedclone-stats@0.0.1(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcurrently-unhandled@0.4.1(transitive)
+ Addeddateformat@1.0.12(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addedduplexer2@0.0.2(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedevent-stream@3.3.5(transitive)
+ Addedfind-up@1.1.2(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedgulp-util@2.2.20(transitive)
+ Addedhas-ansi@0.1.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhosted-git-info@2.8.9(transitive)
+ Addedindent-string@2.1.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedis-finite@1.1.0(transitive)
+ Addedis-utf8@0.2.1(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedload-json-file@1.1.0(transitive)
+ Addedloud-rejection@1.6.0(transitive)
+ Addedmap-obj@1.0.1(transitive)
+ Addedmeow@3.7.0(transitive)
+ Addedminimist@0.2.41.2.8(transitive)
+ Addedmultipipe@0.1.2(transitive)
+ Addednormalize-package-data@2.5.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedparse-json@2.2.0(transitive)
+ Addedpath-exists@2.1.0(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-type@1.1.0(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedread-pkg@1.1.0(transitive)
+ Addedread-pkg-up@1.0.1(transitive)
+ Addedreadable-stream@1.0.341.1.14(transitive)
+ Addedredent@1.0.0(transitive)
+ Addedrepeating@2.0.1(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedspdx-correct@3.2.0(transitive)
+ Addedspdx-exceptions@2.5.0(transitive)
+ Addedspdx-expression-parse@3.0.1(transitive)
+ Addedspdx-license-ids@3.0.20(transitive)
+ Addedsplit@1.0.1(transitive)
+ Addedstream-combiner@0.2.2(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedstrip-ansi@0.3.0(transitive)
+ Addedstrip-bom@2.0.0(transitive)
+ Addedstrip-indent@1.0.1(transitive)
+ Addedsupports-color@0.2.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedthrough2@0.5.1(transitive)
+ Addedtrim-newlines@1.0.0(transitive)
+ Addedvalidate-npm-package-license@3.0.4(transitive)
+ Addedvinyl@0.2.3(transitive)
+ Addedxtend@3.0.0(transitive)
- Removedansi-styles@0.2.0(transitive)
- Removedchalk@0.3.0(transitive)
- Removedevent-stream@3.0.20(transitive)
- Removedgulp-util@1.2.0(transitive)
- Removedhas-color@0.1.7(transitive)
- Removedminimist@0.0.10(transitive)
- Removedoptimist@0.6.1(transitive)
- Removedsplit@0.2.10(transitive)
- Removedstream-combiner@0.0.4(transitive)
- Removedwordwrap@0.0.3(transitive)
Updatedcsslint@^0.10.0
Updatedevent-stream@^3.1.2
Updatedgulp-util@^2.2.14