Background/Goal
We need a way to QA test Codex components (including experimental/WIP components which are not yet a part of published releases) inside a MediaWiki (MW) environment in order to unblock T306180: [Epic] Define manual testing & QA strategy in Codex . DST maintains the VueTest MediaWiki extension that can be used for this purpose; eventually we'd like to deploy this extension to Beta labs in order to have a persistent test environment that testers can access as needed. Until that happens we may need to rely on PatchDemo or local testing. For more background on this task consult T287044: Determine how to perform QA testing of Codex components inside a MediaWiki environment.
In order to accomplish the above, we need a way to package up and distribute some of the Codex component demos so that they can be embedded inside the SpecialPage that VueTest creates.
To facilitate this, we can add a vite.config.js file to the codex-docs package that enables a stand-alone build of the component demos. We won't actually release these demos as an NPM package, because we need to be able to test out incremental changes that happen between Codex versioned releases. Instead, Codex can be embedded in the MediaWiki VueTest extension as a git submodule, which allows even un-released updates to be demoed.
Acceptance criteria
- Add a new vite config setup that enables a stand-alone build of the component demos, usable outside of the documentation site
- Code has access to WIP components that aren’t part of current Codex package
- Demos are available inside of the VueTest extension outside of normal Codex releases