npm ci --legacy-peer-depsto get a "clean install" or "continuous integration" version of the npm packages. This forces npm to use the exact versions frompackage-lock.jsonnpm run startfor starting the webpack dev servernpm run buildto create production-readybundle.jsandbundle.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.jsonchanges 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
