Created
August 21, 2014 19:14
-
-
Save FredKSchott/b409c4ca8022a3f3e516 to your computer and use it in GitHub Desktop.
Creating a Build Task - ShellJS Recipes - http://shelljs-recipes.tumblr.com/
This file contains hidden or 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
require('shelljs/make'); | |
target.lint = function() { | |
// see: http://shelljs-recipes.tumblr.com/post/94832587846/javascript-validation-with-eslint | |
// linting used her for example, can really be anything | |
echo('Validating JavaScript'); | |
exec('node ./node_modules/eslint/bin/eslint ' + JS_FILES); | |
} | |
// To run: node make lint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment