- Fork this repository!
- Install dependencies:
npm install
- The
postinstall
script will automatically clone mozilla/hubs and apply patches to make customizations easier.
This template is designed to make it easier to create and maintain a customized Hubs client.
- Register components/systems in
hub.inject.js
- Start a local development server:
npm run start
To build and deploy for GitHub Pages (in a gh-pages
branch):
npm run build-gh
npm run deploy-gh
Make sure GitHub Pages is configured appropriately in your fork
For more complex changes, you can patch Hubs directly without needing to fork it!
- Make changes to Hubs source in the
hubs
directory (created during installation) - Execute
npm run makepatch
to create a new patch file - Rename the patch file saved in
patches/RENAME_ME.patch