mirror of
https://github.com/jellyfin/jellyfin-chromecast.git
synced 2024-11-23 22:19:46 +00:00
2.0 KiB
2.0 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.
- 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.
- 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