build: Configure banana-checker and jsonlint

Change-Id: I0b1fa679610ab68bd971f883a47645d3d4488046
This commit is contained in:
Kunal Mehta 2015-06-17 10:50:03 -07:00
parent 99c6ac6784
commit eb23e0689b
3 changed files with 33 additions and 0 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
*~ *~
*.kate-swp *.kate-swp
.*.swp .*.swp
node_modules/

20
Gruntfile.js Normal file
View file

@ -0,0 +1,20 @@
/*jshint node:true */
module.exports = function ( grunt ) {
'use strict';
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
var conf = grunt.file.readJSON( 'extension.json' );
grunt.initConfig( {
banana: conf.MessagesDirs,
jsonlint: {
all: [
'**/*.json',
'!node_modules/**'
]
}
} );
grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};

12
package.json Normal file
View file

@ -0,0 +1,12 @@
{
"private": true,
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt": "0.4.5",
"grunt-cli": "0.1.13",
"grunt-banana-checker": "0.2.2",
"grunt-jsonlint": "1.0.4"
}
}