/mediawiki-extensions-BuildSandbox

Testing out different approaches to front-end build tools in MediaWiki

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

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.

  1. install nodejs, npm, and PHP composer
  2. change to the extension's directory
  3. npm install
  4. composer install

Once set up, running npm test and composer test will run automated code checks.