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 21:42:07 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2015-06-11 21:42:07 +0300
commit4743e9a397f5a72c8583753eddb5554ec603c701 (patch)
tree5ca114f18394e49d2eaacbf3dd4733227777beec /Gruntfile.js
parent7b133c0560693bf7ce53ef01dc5a3406aa0de28c (diff)
add grunt task for running jscs checks
usage: "grunt jscs" https://github.com/jscs-dev/grunt-jscs/
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 000000000..bf41e0680
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,29 @@
+/* global module */
+
+/**
+ * ownCloud - Mail
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Christoph Wurst <christoph@winzerhof-wurst.at>
+ * @copyright Christoph Wurst 2015
+ */
+module.exports = function (grunt) {
+ // Project configuration.
+ grunt.initConfig({
+ jscs: {
+ src: 'js/*.js',
+ options: {
+ config: '.jscsrc',
+ verbose: true
+ }
+ }
+ });
+
+ // jscs
+ grunt.loadNpmTasks('grunt-jscs');
+
+ // Default task
+ grunt.registerTask('default', ['grunt-jscs']);
+};