1
0
Fork 0
mirror of https://bitbucket.org/vertlach/iusethis.git synced 2024-06-16 15:10:51 +03:00

Add grunt-jsonlint and grunt-banana-checker

jsonlint and banana-checker will test for valid i18n files

Bug: T94547
Change-Id: I20d48d27cbca48627a8009f68c5c293da4651b9c
This commit is contained in:
Umherirrender 2017-01-17 21:30:24 +01:00
parent 220c862f7f
commit bfd067c9fd
3 changed files with 35 additions and 0 deletions

3
.gitignore vendored
View file

@ -1,3 +1,6 @@
node_modules/
vendor/
.svn
*~
*.kate-swp

21
Gruntfile.js Normal file
View file

@ -0,0 +1,21 @@
/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.initConfig( {
banana: {
all: 'i18n/'
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};

11
package.json Normal file
View file

@ -0,0 +1,11 @@
{
"private": true,
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt": "1.0.1",
"grunt-banana-checker": "0.5.0",
"grunt-jsonlint": "1.1.0"
}
}