Created
July 15, 2014 05:16
-
-
Save abhiaiyer91/6fc6fec6f7ef8b2720e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
"use strict"; | |
desc("Build and test"); | |
task("default", ["lint"]); | |
desc("Let's do this Lint thing"); | |
task("lint", [], function() { | |
var lint = require("./build/lint/lint.js"); | |
var files = new jake.FileList(); | |
files.include("**/*.js"); | |
files.exclude("node_modules"); | |
var options = nodeLintOptions(); | |
var passed = lint.validateFileList(files.toArray(), options, {}); | |
if (!passed) fail("Lint failed"); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment