commit | 7bc5197f89aa147b7050d21d062cd492b13edda8 | [log] [tgz] |
---|---|---|
author | libraryupgrader <tools.libraryupgrader@tools.wmflabs.org> | Thu Sep 19 13:14:33 2024 +0000 |
committer | libraryupgrader <tools.libraryupgrader@tools.wmflabs.org> | Thu Sep 19 13:27:31 2024 +0000 |
tree | 1eb21d9a3b29b7b98463eb71e5565029b12f2fca | |
parent | 763041b1359c81a51ec7f1a0380c643c05e2724c [diff] |
build: Updating @wikimedia/codex to 1.13.0 Change-Id: Idad352219a493950c61d3b78ea36dfd95e3149b4
This dummy extension template is intended to demonstrate how Vue.js can be used within a MediaWiki environment. It is based on the Boilerplate extension.
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.
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.
This extension also includes the Codex repository as a submodule dependency. On an older version of Git, you must provide explicit instructions to download the submodule dependency:
git submodule update --init --recursive
Newer versions of Git will do this automatically.
To update the bundled JS and CSS for the Codex component demos, follow these steps:
git submodule update --remote --merge
npm run codex:build-demos
NOTE: If you run into the error missing script: build
you are running an older version of Node.js. Please check the Node version requirements in package.json
import
and export
)createMwApp
wrapper