ci: set up composer

This commit is contained in:
alistair3149 2021-06-21 19:55:06 -04:00
parent d2b0f2c691
commit bf4dad5097
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C
5 changed files with 60 additions and 1 deletions

3
.phan/config.php Normal file
View file

@ -0,0 +1,3 @@
<?php
return require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';

1
CODE_OF_CONDUCT.md Normal file
View file

@ -0,0 +1 @@
The development of this software is covered by a [Code of Conduct](https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct).

8
bin/phpcbf.sh Normal file
View file

@ -0,0 +1,8 @@
# Force phpcbf to exit with zero
# See https://github.com/squizlabs/PHP_CodeSniffer/issues/1818#issuecomment-354420927
root=$( dirname $0 )/..
$root/vendor/bin/phpcbf
exit 0

47
composer.json Normal file
View file

@ -0,0 +1,47 @@
{
"name": "mediawiki/tabber-neue",
"type": "mediawiki-extension",
"description": "Allows to create tabs within a page. Forked from Extension:Tabber",
"keywords": [
"MediaWiki",
"TabberNeue",
"Tabber",
"extension"
],
"homepage": "https://www.mediawiki.org/wiki/Extension:TabberNeue",
"readme": "README.md",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": "alistair3149",
"email": "alistair31494322@gmail.com",
"role": "Developer"
}
],
"support": {
"forum": "https://www.mediawiki.org/wiki/Extension_talk:TabberNeue",
"wiki": "https://www.mediawiki.org/wiki/Extension:TabberNeue"
},
"require": {
"composer/installers": ">=1.0.1"
},
"require-dev": {
"mediawiki/mediawiki-codesniffer": "36.0.0",
"mediawiki/mediawiki-phan-config": "0.10.6",
"mediawiki/minus-x": "1.1.1",
"php-parallel-lint/php-console-highlighter": "0.5.0",
"php-parallel-lint/php-parallel-lint": "1.3.0"
},
"scripts": {
"fix": [
"minus-x fix ."
],
"test": [
"parallel-lint . --exclude vendor --exclude node_modules",
"phpcs --config-set ignore_warnings_on_exit 1",
"phpcs -p -s",
"minus-x check ."
],
"phan": "phan -d . --long-progress-bar"
}
}

View file

@ -4,7 +4,7 @@
* TabberNeue Hooks Class * TabberNeue Hooks Class
* *
* @package TabberNeue * @package TabberNeue
* @author Eric Fortin, Alexia E. Smith * @author alistair3149, Eric Fortin, Alexia E. Smith
* @license GPL-3.0-or-later * @license GPL-3.0-or-later
* @link https://www.mediawiki.org/wiki/Extension:TabberNeue * @link https://www.mediawiki.org/wiki/Extension:TabberNeue
**/ **/