Skip to content

Instantly share code, notes, and snippets.

@FredKSchott
Created August 21, 2014 19:14
Show Gist options
  • Save FredKSchott/b409c4ca8022a3f3e516 to your computer and use it in GitHub Desktop.
Save FredKSchott/b409c4ca8022a3f3e516 to your computer and use it in GitHub Desktop.
Creating a Build Task - ShellJS Recipes - http://shelljs-recipes.tumblr.com/
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