Add baseDir variable

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

No files matched your search

+1
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',
+8 -1
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}/*'
]
}
};
};