@plutovr/multi-app-manager
v0.10.5
Published
Pluto Multi App Manager
Downloads
10
Readme
Pluto Multi App Manager
A collection of events and event handlers that allow your WebXR app to communicate with Pluto Multi App Launcher and Pluto Communications Service when running as an XRPK
Installation
npm i pluto-mae
Running a local version of Multi App Manager
While there are other ways of running a local version of an NPM module, such as using NPM link, this is the flow that is guarenteed to work.
Creating a local build of Multi App Manager
- Make changes to Multi App Manager, then run
npm run archive
This will build the project and create a TGZ archive file, which is what you will use to include Multi App Manager in your local project
- Copy the path to the TGZ file that was just created (right-click on the file and select "Copy Path")
Installing the local version of Multi App Manager in your project
- In your own project, install the local version by running
npm i "<path-to-archive-file>"
For example:
npm i "C:\Users\<user>\pluto-multi-app-manager\plutovr-multi-app-manager-0.8.2.tgz"
If you already have a remote version of @plutovr/multi-app-manager installed, this will replace it with the local version.
Anytime you make changes to Multi App Manager, you will have to go through these steps again (archiving and then installing).
If you have the local version installed already, it's sufficient to run npm update @plutovr/multi-app-manager
after archiving, as this will update to the newer archive file.
Publishing new package and release versions
- Checkout
main
(which should already have merged any changes for the new version) - Use
npm version version-number-or-semantic-level
to add a new commit and tag with the new version (e.g.npm version v0.10.0
ornpm version patch
) npm run archive
npm publish
git push --tags
- Go to https://github.com/PlutoVR/pluto-multi-app-manager/tags
- Click the tag that you just pushed
- Click the "Create release from tag" button in the upper right
- In the description, add relevant notes and an npm link to the just-published version (can find this at https://www.npmjs.com/package/@plutovr/multi-app-manager under the versions tab)
- Click the "Publish release" button