Skip to content

Commit

Permalink
Make jshint its own task for pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Mar 29, 2018
1 parent f6d3e2e commit 5203c9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,13 @@ module.exports = function(grunt) {

var asciify = ['asciify'];
var styles = ['sass', 'csscomb', 'cmq', 'cssjanus', 'cssmin'];
var hint = ['jshint'];
var js = ['jshint', 'uglify'];
var tests = ['jshint', 'phpunit'];

grunt.registerTask( 'styles', asciify.concat( styles ) );
grunt.registerTask( 'css', asciify.concat( styles ) );
grunt.registerTask( 'hint', asciify.concat( hint ) );
grunt.registerTask( 'js', asciify.concat( js ) );
grunt.registerTask( 'tests', asciify.concat( tests ) );
grunt.registerTask( 'default', asciify.concat( styles, js, tests ) );
Expand Down

0 comments on commit 5203c9a

Please sign in to comment.