2.4 KiB
Contributing
Development
Development Environment
The development environment is setup with editorconfig. Code style is enforced by prettier and eslint for Javascript/Typescript linting
Environment variables
name | required | description | default if not set |
---|---|---|---|
RECEIVER_PORT | No | The port used for the dev server when npm start is used |
9000 |
Building/Using
npm start
- Build a development version and start a dev server
npm run build
- Build a production version
npm run test
- Run tests
npm run lint
- Run linting and prettier
-
Register a new application. It is important that you choose a "Custom application", the rest of the details are up to you (name, description, etc). You will need a web server to host the files on.
-
Ensure that you can use this app:
For versions 10.8.x and earlier:
- Set up a local copy of jellyfin-web.
- Change
applicationStable
andapplicationUnstable
injellyfin-web/src/plugins/chromecastPlayer/plugin.js
to your own application ID. - Run the local copy of jellyfin-web using the provided instructions in the repo.
For versions 10.9.x and beyond:
- Add your
CastReceiverApplication
ID
andName
to the jellyfinsystem.xml
in theconfiguration
folder. - Your custom hosted application is now available to select next to
stable
andunstable
. From the client of your choice.
-
Clone this repo and run
npm install
. This will install all dependencies, run tests and build a production build by default. -
Make changes and build with
npm run build
. -
Before pushing your changes, make sure to run
npm run test
andnpm run lint
.
NOTE: It is recommended to symlink the
dist
folder pointing to a location on your web server hosting the files. That way you can refresh the cast receiver via the Chrome Remote Debugger and see your changes without having to manually copy after each build.
Pull Requests
This project uses the standard Github Fork and PR flow