Add jshint to grunt exec

This commit is contained in:
kpdecker
2013-08-17 12:16:48 -05:00
parent 3d77d172ec
commit 6492fe8c23
7 changed files with 20 additions and 1 deletions
+11
View File
@@ -2,6 +2,16 @@ module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
jshintrc: '.jshintrc',
force: true
},
files: [
'lib/**/!(parser|browser-prefix|browser-suffix).js'
]
},
concat: {
options: {
banner: '/*!\n\n <%= pkg.name %> v<%= pkg.version %>\n\n<%= grunt.file.read("LICENSE") %>\n@license\n*/\n',
@@ -55,6 +65,7 @@ module.exports = function(grunt) {
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('dist-dir', function() {