Permalink
Browse files

Add csslint and check-css target (requires npm install -d)

  • Loading branch information...
humphd committed May 22, 2012
1 parent 9fb319c commit 74f67f5e7506fee761ea7f2162dd980dfed115bd
Showing with 8 additions and 1 deletion.
  1. +6 −0 make.js
  2. +2 −1 package.json
View
@@ -1,6 +1,7 @@
#!/usr/bin/env node
var JSLINT = './node_modules/jshint/bin/hint',
+ CSSLINT = 'node node_modules/csslint/cli.js',
RJS = './node_modules/requirejs/bin/r.js',
STYLUS = './node_modules/stylus/bin/stylus',
DOX = './tools/dox.py',
@@ -54,6 +55,11 @@ target.docs = function() {
target.check = function() {
target['check-lint']();
+ target['check-css']();
+};
+
+target['check-css'] = function() {
+ exec(CSSLINT + ' css/');
};
target['check-lint'] = function() {
View
@@ -69,7 +69,8 @@
"express-browserid": "0.0.x",
"config": "0.4.x",
"mongoose": "2.5.x",
- "stylus": "0.25.x"
+ "stylus": "0.25.x",
+ "csslint": "0.9.8"
},
"license": "MIT",
"engine": {

0 comments on commit 74f67f5

Please sign in to comment.