diff options
author | Chris Rebert <code@rebertia.com> | 2014-03-13 03:29:49 +0400 |
---|---|---|
committer | Chris Rebert <code@rebertia.com> | 2014-03-13 03:30:55 +0400 |
commit | e060f2a3e21d93b1d6b581b62d2c095fbfa66d0d (patch) | |
tree | 4a04dd6b4029db1154c673bf7fb066b538169e0a | |
parent | fdaa42897e0014cb9c8af0f0f81691afd9547b9a (diff) |
add JSCS to Grunt config
-rw-r--r-- | Gruntfile.js | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 9e729c6..2bc8dfb 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -13,14 +13,25 @@ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { + options: { + jshintrc: '.jshintrc' + }, all: [ 'Gruntfile.js', 'tasks/*.js', '<%= nodeunit.tests %>' - ], + ] + }, + + jscs: { options: { - jshintrc: '.jshintrc' - } + config: '.jscsrc' + }, + all: [ + 'Gruntfile.js', + 'tasks/*.js', + '<%= nodeunit.tests %>' + ] }, // Before generating any new files, remove any previously-created files. @@ -64,6 +75,6 @@ module.exports = function(grunt) { grunt.registerTask('test', ['clean', 'css_flip', 'nodeunit']); // By default, lint and run all tests. - grunt.registerTask('default', ['jshint', 'test']); + grunt.registerTask('default', ['jshint', 'jscs', 'test']); }; |