replay-viewer0.2.5 • Public • Published
An extension of the DistributedReplays website, this library aims to provide a React component + utilities for displaying a Rocket League replay viewer in WebGL using Three.js
First thing's first: install all of your dependencies. We rely on Rollup as a bundler, so most dependencies are plugins for this project.
$ npm install
To launch a hot-reloading configuration, run the following. All file changes will be detected and will cause the package to rebundle.
$ npm run start
When you're ready to build, the build scripts will generate typescript declaration files and source maps inside the
/lib folder for your consumption. When in doubt, look at where the
main value is set in the
$ npm run build
Finally, to load this package into an example build, run the following command. This will tell the
examples/ directory to treat this package as though it were installed inside your
$ npm run link
When you're ready, you can launch the React example by navigating to the examples directory and running the start script
$ cd examples/ && npm run start