mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-28 00:01:10 +00:00
15b894bdbc
We originally started using symfony/process because kzykhys/pygments depended upon it. But that library was unmaintained and became broken, so we stopped using it, and just used symfony/process directly. At the time, the main reason in favor of symfony/process was that it could pass stdin to pygments, while Shell\Command couldn't - but it can now (T182463)! On top of that, there are downsides, like not respecting the default MediaWiki shell limits, being incompatible with core's firejail support, and requiring an external composer dependency. Note that because Shell::command() will enforce MediaWiki's normal limits, it's possible that some large pages may no longer render with syntax highlighting if they pass those limits. Bug: T182467 Bug: T181771 Change-Id: Ie1cb72b7eb17d943f79ecae4d94a2110546ef039
44 lines
848 B
JSON
44 lines
848 B
JSON
{
|
|
"name": "mediawiki/syntax-highlight",
|
|
"description": "Syntax highlighting extension for MediaWiki",
|
|
"require-dev": {
|
|
"jakub-onderka/php-parallel-lint": "0.9.2",
|
|
"mediawiki/mediawiki-codesniffer": "15.0.0",
|
|
"jakub-onderka/php-console-highlighter": "0.3.2",
|
|
"mediawiki/minus-x": "0.2.1"
|
|
},
|
|
"license": "GPL-2.0+",
|
|
"authors": [
|
|
{
|
|
"name": "Brion Vibber",
|
|
"email": "brion@wikimedia.org"
|
|
},
|
|
{
|
|
"name": "Niklas Laxström",
|
|
"email": "nlaxstrom@wikimedia.org"
|
|
},
|
|
{
|
|
"name": "Ori Livneh",
|
|
"email": "ori@wikimedia.org"
|
|
},
|
|
{
|
|
"name": "Rob Church"
|
|
},
|
|
{
|
|
"name": "Tim Starling",
|
|
"email": "tstarling@wikimedia.org"
|
|
}
|
|
],
|
|
"scripts": {
|
|
"fix": [
|
|
"phpcbf",
|
|
"minus-x fix ."
|
|
],
|
|
"test": [
|
|
"parallel-lint . --exclude vendor --exclude node_modules",
|
|
"phpcs -p -s",
|
|
"minus-x check ."
|
|
]
|
|
}
|
|
}
|