This is a blank extension template. It doesn't really do anything on its own. It is intended to provide a boiler template for an actual MediaWiki extension.
If you are checking this out from Git and intend to use it, you may use the following commands to make a clean directory of just this template without the Git meta-data and other examples.
cd extensions
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/BuildSandbox.git
cp -r BuildSandbox ./MyExtension
rm -rf ./MyExtension/.git
This automates the recommended code checkers for PHP and JavaScript code in Wikimedia projects (see https://www.mediawiki.org/wiki/Continuous_integration/Entry_points). To take advantage of this automation.
- install nodejs, npm, and PHP composer
- change to the extension's directory
npm install
composer install
Once set up, running npm test
and composer test
will run automated code checks.