mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify
synced 2024-11-11 16:49:30 +00:00
Add grunt-jsonlint and grunt-banana-checker
jsonlint and banana-checker will test for valid i18n files Bug: T94547 Change-Id: I68f76b69bf6a3d466ca87c83f0ab86998ef8ef74
This commit is contained in:
parent
637cd2da5f
commit
0682e17314
21
.gitignore
vendored
21
.gitignore
vendored
|
@ -1,2 +1,23 @@
|
|||
node_modules/
|
||||
vendor/
|
||||
composer.lock
|
||||
|
||||
# Editors
|
||||
*.kate-swp
|
||||
*~
|
||||
\#*#
|
||||
.#*
|
||||
.*.swp
|
||||
.project
|
||||
.buildpath
|
||||
.classpath
|
||||
.settings
|
||||
cscope.files
|
||||
cscope.out
|
||||
*.orig
|
||||
## NetBeans
|
||||
nbproject*
|
||||
project.index
|
||||
## Sublime
|
||||
sublime-*
|
||||
sftp-config.json
|
||||
|
|
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