Description
I think it would be extremely helpful if there was a CONTRIBUTING.md or README.md that explained clear steps on how to develop the jellyfin-web with a local server. Do we copy the main directory? The dist folder? Where do we copy? Etc.
This should help attract new developers as the setup is daunting with no documentation (except for the good docs on the main jellyfin server setup).
I figured this would fit better here rather than the feathub.
I really want to make some improvements to simplify this going forward, but here is my current process to run an instance of the website locally and connect to an existing Jellyfin server.
yarn install.index.html to load the main scripts.dist/. PHP and Python include servers that you can use for this anything that can server static files will work. I use cd dist && sudo python3 -m http.server 80 (sudo is needed to bind to port 80 on my operating system).http://localhost. The loading spinner will continue to display, but proceed to select "Change Server" then "Add Server" and add your Jellyfin server url.yarn build.my setup with vsc lock like this
1.Fork and clone jellyfin repository
2.open it with vsc workspace
3.add jellyfin-web submodule in to workspace
webDir = Path.Combine(AppContext.BaseDirectory, "jellyfin-web", "src"); to webDir = Path.Combine(AppContext.BaseDirectory, "jellyfin-web", "dist");<None Include="jellyfin-web\src\**\*.*"> to <None Include="jellyfin-web\dist\**\*.*">Since https://github.com/jellyfin/jellyfin-web/pull/605 is merged,it's not required anymore to rebuild on every change - you can fire up the webpack dev server using yarn serve and open http://localhost:8080, select a backend server and change files - webpack will reload automatically.
Most helpful comment
Since https://github.com/jellyfin/jellyfin-web/pull/605 is merged,it's not required anymore to rebuild on every change - you can fire up the webpack dev server using
yarn serveand openhttp://localhost:8080, select a backend server and change files - webpack will reload automatically.