2015-06-20 05:13:04 +00:00
|
|
|
/*jshint node:true */
|
|
|
|
module.exports = function ( grunt ) {
|
2017-01-23 14:05:26 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
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
|
|
|
},
|
2017-01-23 14:05:26 +00:00
|
|
|
banana: conf.MessagesDirs,
|
2015-06-20 05:13:04 +00:00
|
|
|
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' );
|
|
|
|
};
|