Skip to content
Snippets Groups Projects
Commit 4743e9a3 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

add grunt task for running jscs checks

parent 7b133c05
No related branches found
No related tags found
No related merge requests found
......@@ -8,3 +8,5 @@ vendor/
# test coverage
tests/clover.xml
# Node.js modules
node_modules/
\ No newline at end of file
......@@ -24,7 +24,7 @@
"js/backbone.marionette.js",
"js/jquery.autosize.js",
"js/jquery.storageapi.js",
"js/jquery.visibility.js"
"js/jquery-visibility.js"
],
"jsDoc": {
......
/* 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']);
};
......@@ -24,6 +24,8 @@
},
"homepage": "https://github.com/owncloud/mail",
"devDependencies": {
"grunt-jscs": "^1.8.0",
"jscs-jsdoc": "^1.0.1",
"jshint": "^2.7.0",
"jsxhint": "^0.14.0"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment