Add baseDir variable

This commit is contained in:
Rashid Khan 2013-11-14 21:29:41 -07:00
parent 07f1571563
commit 92a485bd29
2 changed files with 9 additions and 1 deletions

View File

@ -4,6 +4,7 @@ module.exports = function (grunt) {
var config = {
pkg: grunt.file.readJSON('package.json'),
baseDir: '.',
srcDir: 'src',
destDir: 'dist',
tempDir: 'tmp',

View File

@ -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}/*'
]
}
};
};