Extension:VueTest
![]() | A request to archive this extension has been made on Phabricator . See T357475 for the archival request and the rationale for the request, and to leave comments about the request. | ![]() |
![]() Release status: experimentalCategory:Experimental extensions |
|
---|---|
Implementation | Special pageCategory:Special page extensions |
Description | Sandbox and testing ground for Vue.js code in MediaWiki |
Author(s) | Design Systems Team |
Latest version | Continuous updates |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible.Category:Extensions with release branches compatibility policy |
MediaWiki | masterCategory:Extensions with manual MediaWiki version |
License | GNU General Public License 2.0 or later |
Download | Category:Extensions in Wikimedia version control readme |
Quarterly downloads | 0 |
Translate the VueTest extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
VueTest is a demonstration extension for how to embed Vue.js code in MediaWiki. It's also used as a testing tool for testing Codex components in MediaWiki.
Requirements
MediaWiki 1.39.0 or greater.
Installation
Download this extension into the extensions directory of your local MediaWiki instance. Then enable it in LocalSettings.php by adding:
wfLoadExtension( 'VueTest' );
All Vue.js code is meant to be handled by ResourceLoader at runtime, so running npm install
is not necessary. However, there are a number of devDependencies specified in 'package.json' that may be useful for development and testing.
Once set up, running npm test and composer test will run automated code checks.
Usage
This extension adds a new special page, Special:VueTest. This page contains several interactive demos to showcase some of what you can do with Vue, as well as how this tool can be integrated in a MediaWiki environment.