npm ci --legacy-peer-deps
to get a "clean install" or "continuous integration" version of the npm packages. This forces npm to use the exact versions frompackage-lock.json
npm run start
for starting the webpack dev servernpm run build
to create production-readybundle.js
andbundle.js.map
See package.json
for other scripts.
NOTE: As the master branch of the main repo from Mozilla did not work right away, getting the project to build successfully was a bit tricky. The latest commit on the main branch uses
[email protected]
but fails to build successfully (because of breaking changes in the API?). This branch diverges from an older commit that uses a deprecated version ([email protected]
). The naming is weird as it has a higher version number despite being older. Compare the npm release history with thepackage.json
changes in the repo for a clearer picture.
More info on: https://blog.mozvr.com/jumpy-balls
A little physics game using:
Give it a try: https://mixedreality.mozilla.org/jumpy-balls/
Read the blog post: https://blog.mozvr.com/jumpy-balls