Skip to content

Commit

Permalink
Add baseDir variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Nov 15, 2013
1 parent 07f1571 commit 92a485b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = function (grunt) {

var config = {
pkg: grunt.file.readJSON('package.json'),
baseDir: '.',
srcDir: 'src',
destDir: 'dist',
tempDir: 'tmp',
Expand Down
9 changes: 8 additions & 1 deletion tasks/options/jshint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}/*'
]
}
};
};

0 comments on commit 92a485b

Please sign in to comment.