2015-06-20 05:13:04 +00:00
|
|
|
/*jshint node:true */
|
|
|
|
module.exports = function ( grunt ) {
|
2015-10-07 13:29:14 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
|
2015-06-20 05:13:04 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-jsonlint' );
|
2015-10-07 13:29:14 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
|
|
grunt.loadNpmTasks( 'grunt-jscs' );
|
2015-06-20 05:13:04 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
2015-10-07 13:29:14 +00:00
|
|
|
jshint: {
|
|
|
|
options: {
|
|
|
|
jshintrc: true
|
|
|
|
},
|
2015-11-06 23:48:39 +00:00
|
|
|
all: '.'
|
2015-10-07 13:29:14 +00:00
|
|
|
},
|
|
|
|
jscs: {
|
2015-11-06 23:48:39 +00:00
|
|
|
src: '.'
|
2015-10-07 13:29:14 +00:00
|
|
|
},
|
2015-06-20 05:13:04 +00:00
|
|
|
banana: {
|
|
|
|
all: 'i18n/'
|
|
|
|
},
|
|
|
|
jsonlint: {
|
|
|
|
all: [
|
|
|
|
'**/*.json',
|
|
|
|
'!node_modules/**'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2015-10-07 13:29:14 +00:00
|
|
|
grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] );
|
2015-06-20 05:13:04 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|