Merge "build: Configuring banana-checker and jsonlint"

This commit is contained in:
jenkins-bot 2015-06-15 23:27:42 +00:00 committed by Gerrit Code Review
commit b116ac14f3
3 changed files with 41 additions and 0 deletions

1
.gitignore vendored
View File

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

25
Gruntfile.js Normal file
View File

@ -0,0 +1,25 @@
/*!
* Grunt file
*
* @package ContactPage
*/
/*jshint node:true */
module.exports = function ( grunt ) {
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' );
};

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "contactpage",
"version": "0.0.0",
"private": true,
"description": "Build tools for the ContactPage extension.",
"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"
}
}