Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/218834
Change subject: build: Configure banana-checker and jsonlint
......................................................................
build: Configure banana-checker and jsonlint
Change-Id: I1eba65b5c39f5464bb4c25483cc3fa5007c439f4
---
M .gitignore
A Gruntfile.js
A package.json
3 files changed, 41 insertions(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/34/218834/1
diff --git a/.gitignore b/.gitignore
index a9a22a0..250d5ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
docs/
composer.lock
vendor/
+node_modules/
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..3f3e459
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,25 @@
+/*!
+ * Grunt file
+ *
+ * @package ContentTranslation
+ */
+
+/*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' );
+};
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..8963d3d
--- /dev/null
+++ b/package.json
@@ -0,0 +1,15 @@
+{
+ "name": "contenttranslation",
+ "version": "0.0.0",
+ "private": true,
+ "description": "Build tools for the ContentTranslation 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"
+ }
+}
--
To view, visit https://gerrit.wikimedia.org/r/218834
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1eba65b5c39f5464bb4c25483cc3fa5007c439f4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits