Skip to content

Instantly share code, notes, and snippets.

@abhiaiyer91
Created July 15, 2014 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhiaiyer91/6fc6fec6f7ef8b2720e8 to your computer and use it in GitHub Desktop.
Save abhiaiyer91/6fc6fec6f7ef8b2720e8 to your computer and use it in GitHub Desktop.
(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