mirror of
https://bitbucket.org/vertlach/iusethis.git
synced 2024-06-28 21:05:02 +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:
parent
220c862f7f
commit
bfd067c9fd
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,6 @@
|
||||||
|
node_modules/
|
||||||
|
vendor/
|
||||||
|
|
||||||
.svn
|
.svn
|
||||||
*~
|
*~
|
||||||
*.kate-swp
|
*.kate-swp
|
||||||
|
|
21
Gruntfile.js
Normal file
21
Gruntfile.js
Normal 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
11
package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue