Skip to content

Commit da22116

Browse files
author
Stephane Bisson
committed
Initial structure
Change-Id: I446a4138038645a8f2fe4ec99e52b326df644fc3
1 parent 528a1d0 commit da22116

12 files changed

+775
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules
2+
/vendor
3+
/composer.lock

.phpcs.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
4+
<file>.</file>
5+
<arg name="bootstrap" value="./vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php"/>
6+
<arg name="extensions" value="php,php5,inc"/>
7+
<arg name="encoding" value="UTF-8"/>
8+
</ruleset>

CODE_OF_CONDUCT.md

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

COPYING

+674
Large diffs are not rendered by default.

Gruntfile.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = function ( grunt ) {
2+
grunt.loadNpmTasks( 'grunt-jsonlint' );
3+
grunt.loadNpmTasks( 'grunt-banana-checker' );
4+
5+
var conf = grunt.file.readJSON( 'extension.json' );
6+
grunt.initConfig( {
7+
banana: conf.MessagesDirs,
8+
jsonlint: {
9+
all: [
10+
'**/*.json',
11+
'!node_modules/**',
12+
'!vendor/**'
13+
]
14+
}
15+
} );
16+
17+
grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
18+
grunt.registerTask( 'default', 'test' );
19+
};

README

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This is a MediaWiki extension that contains experiments done by the Growth team.
2+
3+
See the wiki page for more information: <https://www.mediawiki.org/wiki/Extension:GrowthExperiments>.

composer.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"require-dev": {
3+
"jakub-onderka/php-parallel-lint": "1.0.0",
4+
"mediawiki/mediawiki-codesniffer": "21.0.0",
5+
"jakub-onderka/php-console-highlighter": "0.3.2",
6+
"mediawiki/minus-x": "0.3.1"
7+
},
8+
"scripts": {
9+
"fix": [
10+
"phpcbf",
11+
"minus-x fix ."
12+
],
13+
"test": [
14+
"parallel-lint . --exclude vendor --exclude node_modules",
15+
"phpcs -s -p",
16+
"minus-x check ."
17+
]
18+
}
19+
}

extension.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "GrowthExperiments",
3+
"descriptionmsg": "copyvio-desc",
4+
"license-name": "GPL-3.0-or-later",
5+
"author": [
6+
"WMF Growth Team"
7+
],
8+
"url": "https://www.mediawiki.org/wiki/Extension:GrowthExperiments",
9+
"requires": {
10+
"MediaWiki": ">= 1.32.0"
11+
},
12+
"AutoloadNamespaces": {
13+
"GrowthExperiments\\": "includes/"
14+
},
15+
"MessagesDirs": {
16+
"Copyvio": [
17+
"i18n"
18+
]
19+
},
20+
"manifest_version": 2
21+
}

i18n/en.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"@metadata": {
3+
"authors": []
4+
},
5+
"growthexperiments-desc": "This extension contains experiments done by the Growth team."
6+
}

i18n/qqq.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"@metadata": [],
3+
"growthexperiments-desc": "{{desc|name=GrowthExperiments|url=https://www.mediawiki.org/wiki/Extension:GrowthExperiments}}"
4+
}

includes/Hooks.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
namespace GrowthExperiments;
4+
5+
class Hooks {
6+
}

package.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"test": "grunt test"
5+
},
6+
"devDependencies": {
7+
"grunt": "1.0.1",
8+
"grunt-banana-checker": "0.6.0",
9+
"grunt-jsonlint": "1.1.0"
10+
}
11+
}

0 commit comments

Comments
 (0)