Want to get involved? Thanks! There are plenty of ways to help!
A bug is a demonstrable problem that is caused by the code in the repository. Good bug reports are extremely helpful - thank you!
Please read the following guidelines before you report an issue:
-
Use the GitHub issue search — check if the issue has already been reported. If it has been, please comment on the existing issue.
-
Check if the issue has been fixed — the latest
master
or development branch may already contain a fix. -
Isolate the demonstrable problem — make sure that the code in the project's repository is definitely responsible for the issue.
Please try to be as detailed as possible in your report too. What is your environment? What steps will reproduce the issue? What would you expect to be the outcome? All these details will help people to assess and fix any potential bugs. You can also consider using the issue template when reporting an issue.
Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible.
Livestreamer Twitch GUI is based on NW.js. This means, that if you want to debug or contribute to this program, NW.js has to be installed on your machine - using a browser does not work. There are grunt tasks (the build tool that's being used) available that will download and start NW.js for you (see below). Also please ensure that you've installed the latest stable version of Node.js (including npm), so all dependencies can be installed as well and the application can be built and compiled.
If you want to know more about NW.js apps in general, head over to the NW.js website.
Run these commands to get started:
# clone the repository
git clone https://github.com/bastimeyer/livestreamer-twitch-gui.git
cd livestreamer-twitch-gui
# globally install grunt-cli and bower - may require administrator privileges
npm install -g grunt-cli bower
# locally install all npm and bower dependencies
npm install
If you just want to build and compile the application, do this:
# build and compile - executable will be created inside the build/releases folder
grunt release
To get a list of all available grunt tasks, run grunt --help
, or just take a look at the files in build/tasks/{config,custom}
.
While debugging and developing, you can choose between two methods:
-
Run the dev build
Simply rungrunt
. This will start thedev
grunt task, which will then begin building the application (with enabled debug flags) into thebuild/tmp
folder. This task will also start a couple of file watchers which rebuild the application as soon as some changes are being made. NW.js will automatically be downloaded and launched. -
Run from source
Another way of running the application is by starting it directly from thesrc
folder without building/compiling it. This method should be faster than the first one.
To do this, rungrunt src
. This will do some preparations first before downloading and launching NW.js and will also start additional file watchers.
Since NW.js is based on Chromium, you will find all the usual debugging tools. These can be accessed by clicking the button in the titlebar of the application, or by launching NW.js with the --remote-debugging-port=8888
parameter (grunt already does this). The dev tools can then be found in your local browser at http://localhost:8888/
. There also exist several IDEs with internal NW.js debugging support, too.
Good pull requests - patches, improvements, new features - are a fantastic help. They should remain focused in scope and avoid containing unrelated commits.
Please ask first before embarking on any significant pull request (e.g. implementing features, refactoring code, porting to a different language), otherwise you risk spending a lot of time working on something that the project's developers might not want to merge into the project.
Please adhere to the coding conventions used throughout a project (indentation, white space, accurate comments, etc.) and any other requirements (such as test coverage).
Adhering to the following process is the best way to get your work included in the project:
-
Fork the project, clone your fork, and configure the remotes:
# Clone your fork of the repo into the current directory git clone [email protected]:<YOUR-USERNAME>/livestreamer-twitch-gui.git # Navigate to the newly cloned directory cd livestreamer-twitch-gui # Assign the original repo to a remote called "upstream" git remote add upstream https://github.com/bastimeyer/livestreamer-twitch-gui.git
-
If you cloned a while ago, get the latest changes from upstream
git checkout master git pull upstream master
-
Create a new topic branch (off the main project branch) to contain your feature, change, or fix:
git checkout -b <TOPIC-BRANCH-NAME>
-
Commit your changes in logical chunks. Please adhere to these git commit message guidelines or your code is unlikely be merged into the project. Use git's interactive rebase feature to tidy up your commits before making them public.
-
Locally merge (or rebase) the upstream branch into your topic branch:
git pull [--rebase] upstream master
-
Push your topic branch up to your fork:
git push origin <TOPIC-BRANCH-NAME>
-
Open a Pull Request with a clear title and description.
IMPORTANT: By submitting a patch, you agree to allow the project owners to license your work under the terms of the MIT License.
This contributing guide has been adapted from HTML5 boilerplate's guide.