jenkins-bot has submitted this change and it was merged. Change subject: Initial placeholder extension, doing nothing initially. ......................................................................
Initial placeholder extension, doing nothing initially. Introduce the CI entry point via composer and npm. Copied from the BoilerPlate extension. Signed-off-by: Antoine Musso <[email protected]> Change-Id: I2e1520c043f0e3f0335e013564ca4c1d6b6e035c --- A .gitignore A .jscsrc A CollaborationKit.php A Gruntfile.js A composer.json A extension.json A i18n/en.json A i18n/qqq.json A package.json A phpcs.xml 10 files changed, 114 insertions(+), 0 deletions(-) Approvals: Isarra: Looks good to me, approved jenkins-bot: Verified diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..47e36d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/node_modules/ +/vendor/ +/composer.lock diff --git a/.jscsrc b/.jscsrc new file mode 100644 index 0000000..9d22e3f --- /dev/null +++ b/.jscsrc @@ -0,0 +1,3 @@ +{ + "preset": "wikimedia" +} diff --git a/CollaborationKit.php b/CollaborationKit.php new file mode 100644 index 0000000..5452e3c --- /dev/null +++ b/CollaborationKit.php @@ -0,0 +1,6 @@ +<?php + +// Placeholder junk +class CollaborationKitJunk { + // ... +} diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..f1ff682 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,37 @@ +/*jshint node:true */ +module.exports = function ( grunt ) { + grunt.loadNpmTasks( 'grunt-contrib-jshint' ); + grunt.loadNpmTasks( 'grunt-jsonlint' ); + grunt.loadNpmTasks( 'grunt-banana-checker' ); + grunt.loadNpmTasks( 'grunt-jscs' ); + + grunt.initConfig( { + jshint: { + options: { + jshintrc: true + }, + all: [ + '**/*.js', + '!node_modules/**', + '!vendor/**' + ] + }, + jscs: { + src: '<%= jshint.all %>' + }, + banana: { + all: 'i18n/' + }, + jsonlint: { + all: [ + '*.json', + '**/*.json', + '!node_modules/**', + '!vendor/**' + ] + } + } ); + + grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] ); + grunt.registerTask( 'default', 'test' ); +}; diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..083767b --- /dev/null +++ b/composer.json @@ -0,0 +1,12 @@ +{ + "require-dev": { + "jakub-onderka/php-parallel-lint": "0.9.2", + "mediawiki/mediawiki-codesniffer": "0.5.1" + }, + "scripts": { + "test": [ + "parallel-lint . --exclude vendor", + "phpcs -p -s" + ] + } +} diff --git a/extension.json b/extension.json new file mode 100644 index 0000000..2a897c5 --- /dev/null +++ b/extension.json @@ -0,0 +1,18 @@ +{ + "name": "Collaboration Kit", + "version": "0.1", + "author": "Calimonius the Estrange", + "url": "https://www.mediawiki.org/wiki/Extension:CollaborationKit", + "descriptionmsg": "colaborationkit-desc", + "type": "other", + "license-name": "GPL-2.0+", + "MessagesDirs": { + "CollaborationKit": [ + "i18n" + ] + }, + "AutoloadClasses": { + "CollaborationKitJunk": "CollaborationKit.php" + }, + "manifest_version": 1 +} diff --git a/i18n/en.json b/i18n/en.json new file mode 100644 index 0000000..9f4e183 --- /dev/null +++ b/i18n/en.json @@ -0,0 +1,6 @@ +{ + "@metadata": { + "authors": [ "Isarra" ] + }, + "colaborationkit-desc": "Extension for making hub things with automated workflows and stuff. More on this later when it exists." +} diff --git a/i18n/qqq.json b/i18n/qqq.json new file mode 100644 index 0000000..f5c245b --- /dev/null +++ b/i18n/qqq.json @@ -0,0 +1,6 @@ +{ + "@metadata": { + "authors": [ "Isarra" ] + }, + "colaborationkit-desc": "{{desc|name=CollaborationKit|url=https://www.mediawiki.org/wiki/Extension:CollaborationKit}}" +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..c6a6d84 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "private": true, + "scripts": { + "test": "grunt test" + }, + "devDependencies": { + "grunt": "0.4.5", + "grunt-cli": "0.1.13", + "grunt-contrib-jshint": "0.11.3", + "grunt-banana-checker": "0.4.0", + "grunt-jscs": "2.5.0", + "grunt-jsonlint": "1.0.6" + } +} diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..25eeabd --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,9 @@ +<?xml version="1.0"?> +<ruleset> + <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/> + <file>.</file> + <arg name="extensions" value="php,php5,inc"/> + <arg name="encoding" value="utf8"/> + <exclude-pattern>node_modules</exclude-pattern> + <exclude-pattern>vendor</exclude-pattern> +</ruleset> -- To view, visit https://gerrit.wikimedia.org/r/267010 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I2e1520c043f0e3f0335e013564ca4c1d6b6e035c Gerrit-PatchSet: 7 Gerrit-Project: mediawiki/extensions/CollaborationKit Gerrit-Branch: master Gerrit-Owner: Isarra <[email protected]> Gerrit-Reviewer: Hashar <[email protected]> Gerrit-Reviewer: Isarra <[email protected]> Gerrit-Reviewer: Siebrand <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
