Permalink
Browse files

Make --no-lint not show csslint warnings either

  • Loading branch information...
1 parent 8248ede commit 869c104d52fb15fcf9d273e0e8199ea09020ad5c @davglass committed Sep 5, 2012
Showing with 15 additions and 8 deletions.
  1. +15 −8 lib/module.js
View
@@ -195,9 +195,13 @@ var buildCSS = function (mod, name, callback) {
.concat()
.cssstamp({
stamp: '/* YUI CSS Detection Stamp */\n#yui3-css-stamp.' + name + ' { display: none; }'
- })
- .csslint(cssLint)
- .check()
+ });
+
+ if (defaultLint) {
+ queue.csslint(cssLint);
+ }
+
+ queue.check()
.write(path.join(buildDir, name, name + '.css'))
.cssmin()
.check()
@@ -433,11 +437,14 @@ var buildSkin = function (mod, name, callback) {
path.join(base, name + '-skin.css')
])
.log('copying assets to skin for ' + skinName)
- .concat()
- .csslint(cssLint)
- .cssstamp({
- stamp: '/* YUI CSS Detection Stamp */\n#yui3-css-stamp.skin-' + skinName + '-' + name + ' { display: none; }'
- })
+ .concat();
+ if (defaultLint) {
+ queue.csslint(cssLint);
+ }
+
+ queue.cssstamp({
+ stamp: '/* YUI CSS Detection Stamp */\n#yui3-css-stamp.skin-' + skinName + '-' + name + ' { display: none; }'
+ })
.cssmin()
.check()
.log('writing skin file with core wrapper')

0 comments on commit 869c104

Please sign in to comment.