Prerequisites
The repository uses Yarn 1 (Classic) as its package manager. Install dependencies from the repo root:Repo structure
packages/* entries are Yarn workspaces. Turbo is used to run tasks across all workspaces in the correct dependency order.
Development commands
Dev server
Launch a live-reloading dev server for all packages.
Documentation
Serve the VitePress documentation site locally.
Linting
Run ESLint and Stylelint across the entire repo.
Tests
Run unit tests (Mocha) and end-to-end tests (Cypress).
Dev server
Documentation
Building
Linting
Testing
- Unit tests
- End-to-end tests
npm link
To test local changes in a consuming project, register all packages withnpm link:
npm link for every package in packages/*, making them available globally so you can link them into your project with npm link @photo-sphere-viewer/<package>.
Making changes
Start the dev server
Run the dev server to watch for changes across all packages:Use
npm run serve-filter to watch only the packages you are actively editing.Make your changes
Edit source files inside
packages/<package-name>/src/. TypeScript and SASS files are compiled automatically while the dev server is running.Credits
The following photos and videos are used across the demos:| Demo | Author |
|---|---|
sphere, sphere-tiles, cubemap, cubemap-tiles | Damien Sorel |
sphere-tiles-24k, cubemap-tiles-24k | Greg Zaal |
artist-workshop | Oliksiy Yakovlyev |
equirectangular-video | Mettle Communications |
cubemap-video | The Dalí Museum |
dualfisheye | Jonna Luostari |
