@@ -24,6 +24,20 @@ module.exports = function(grunt) {
2424 }
2525 } ,
2626
27+ lintspaces : {
28+ all : {
29+ src : [
30+ '*' , 'src/*' , 'spec/*' , 'demo/*' , 'assets/base.css'
31+ ] ,
32+ options : {
33+ newline : true ,
34+ trailingspaces : true ,
35+ indentation : 'tabs' ,
36+ spaces : 2
37+ }
38+ }
39+ } ,
40+
2741 jasmine : {
2842 src : 'src/jquery.github.js' ,
2943 options : {
@@ -33,15 +47,13 @@ module.exports = function(grunt) {
3347 }
3448 } ,
3549
36- // Lint definitions
3750 jshint : {
3851 files : [ 'src/jquery.github.js' ] ,
3952 options : {
4053 jshintrc : ".jshintrc"
4154 }
4255 } ,
4356
44- // Minify definitions
4557 uglify : {
4658 options : {
4759 banner : '<%= meta.banner %>'
@@ -61,10 +73,14 @@ module.exports = function(grunt) {
6173
6274 } ) ;
6375
64- // Load all Grunt tasks installed from NPM
65- require ( 'matchdep' ) . filterDev ( 'grunt-*' ) . forEach ( grunt . loadNpmTasks ) ;
76+ grunt . loadNpmTasks ( 'grunt-contrib-concat' ) ;
77+ grunt . loadNpmTasks ( 'grunt-contrib-jasmine' ) ;
78+ grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
79+ grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
80+ grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
81+ grunt . loadNpmTasks ( 'grunt-lintspaces' ) ;
6682
67- grunt . registerTask ( 'default' , [ 'jshint' , 'concat' , 'uglify' ] ) ;
68- grunt . registerTask ( 'test' , [ 'jshint' , 'jasmine' ] ) ;
83+ grunt . registerTask ( 'default' , [ 'lintspaces' , ' jshint', 'concat' , 'uglify' ] ) ;
84+ grunt . registerTask ( 'test' , [ 'lintspaces' , ' jshint', 'jasmine' ] ) ;
6985
7086} ;
0 commit comments