From 92a485bd2950f358cef4430e0f206aff4875b6bd Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Thu, 14 Nov 2013 21:29:41 -0700 Subject: [PATCH] Add baseDir variable --- Gruntfile.js | 1 + tasks/options/jshint.js | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 039f3b63274..a2db929f2b2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -4,6 +4,7 @@ module.exports = function (grunt) { var config = { pkg: grunt.file.readJSON('package.json'), + baseDir: '.', srcDir: 'src', destDir: 'dist', tempDir: 'tmp', diff --git a/tasks/options/jshint.js b/tasks/options/jshint.js index 59980f2a317..dee5b7a0bf3 100644 --- a/tasks/options/jshint.js +++ b/tasks/options/jshint.js @@ -7,7 +7,14 @@ module.exports = function(config) { } }, options: { - jshintrc: '.jshintrc' + jshintrc: '<%= baseDir %>/.jshintrc', + ignores: [ + 'node_modules/*', + 'dist/*', + 'sample/*', + '<%= srcDir %>/vendor/*', + '<%= srcDir %>/app/panels/*/{lib,leaflet}/*' + ] } }; }; \ No newline at end of file