Merge "build: Configure banana-checker and jsonlint"
This commit is contained in:
commit
e53596ba9b
|
@ -41,3 +41,4 @@ modules/MathJax/unpacked/jax/output/SVG/fonts/Neo-Euler
|
||||||
modules/MathJax/unpacked/jax/output/SVG/fonts/STIX-Web
|
modules/MathJax/unpacked/jax/output/SVG/fonts/STIX-Web
|
||||||
tests/browser/.bundle
|
tests/browser/.bundle
|
||||||
tests/browser/.gem
|
tests/browser/.gem
|
||||||
|
node_modules/
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
/*jshint node:true */
|
||||||
|
module.exports = function ( grunt ) {
|
||||||
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
||||||
|
grunt.loadNpmTasks( 'grunt-jsonlint' );
|
||||||
|
|
||||||
|
grunt.initConfig( {
|
||||||
|
banana: {
|
||||||
|
all: 'i18n/'
|
||||||
|
},
|
||||||
|
jsonlint: {
|
||||||
|
all: [
|
||||||
|
'**/*.json',
|
||||||
|
'!node_modules/**'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
|
||||||
|
grunt.registerTask( 'default', 'test' );
|
||||||
|
};
|
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue