build: Updating development dependencies
[T119942Repr.git] / Gruntfile.js
blob56ff21851ae9f12e2e04f5b4b0e1c4e98a87f0eb
1 /*jshint node:true */
2 module.exports = function ( grunt ) {
3         grunt.loadNpmTasks( 'grunt-contrib-jshint' );
4         grunt.loadNpmTasks( 'grunt-jsonlint' );
5         grunt.loadNpmTasks( 'grunt-banana-checker' );
6         grunt.loadNpmTasks( 'grunt-jscs' );
8         grunt.initConfig( {
9                 jshint: {
10                         options: {
11                                 jshintrc: true
12                         },
13                         all: [
14                                 '*.js',
15                                 'modules/**/*.js'
16                         ]
17                 },
18                 jscs: {
19                         src: '<%= jshint.all %>'
20                 },
21                 banana: {
22                         all: 'i18n/'
23                 },
24                 jsonlint: {
25                         all: [
26                                 '*.json',
27                                 '**/*.json',
28                                 '!node_modules/**'
29                         ]
30                 }
31         } );
33         grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] );
34         grunt.registerTask( 'default', 'test' );