Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2015-06-11 22:47:16 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2015-06-11 22:47:16 +0300
commit37c2ed5fb5ac17f5583606d594a8bcc4dadd3a16 (patch)
tree8d6b2d98692083419f0cb5709c7d939e66a7cce7 /Gruntfile.js
parent4743e9a397f5a72c8583753eddb5554ec603c701 (diff)
add grunt task for running jshint checks
usage: "grunt jshint" https://github.com/gruntjs/grunt-contrib-jshint
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index bf41e0680..6671fcc11 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -18,12 +18,18 @@ module.exports = function (grunt) {
config: '.jscsrc',
verbose: true
}
+ },
+ jshint: {
+ jshintrc: '.jshintrc'
}
});
// jscs
grunt.loadNpmTasks('grunt-jscs');
+ // jshint
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+
// Default task
- grunt.registerTask('default', ['grunt-jscs']);
+ grunt.registerTask('default', ['jscs', 'jshint']);
};