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.
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 (formerly Node-Webkit). 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 available that will download and start NW.js for you (see below). Also please ensure that either io.js or Node.js and also npm are installed, 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 wiki page.
Run these commands to get started:
# 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 developing, you can choose between two methods:
-
Run the "precompiled" application
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 inside thesrc
folder. NW.js will automatically be started (and downloaded, if it hasn't been installed yet). -
Run the application from source
Another way of running the application is by starting it directly from thesrc
folder (grunt run:src
). Before you can do this though, you first need to run thegrunt metadata less:source
tasks once. If you're working on the stylesheets, then you should also start the watcher taskgrunt watch:lesssource
, which will automatically recompile the stylesheets after each change.
The easiest way of debugging a NW.js application is by running nw
with the --remote-debugging-port=8888
parameter (the grunt run
task already does this). Then you can comfortably access the developer console in your local browser at http://localhost:8888/
. I recommend adding an alias for the nw
+ parameter command.
If you're running the application from source or the compiled debug version, you're able to access NW.js' internal developer tools by clicking on the embedded button inside the titlebar.
There also exist several IDEs with 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 this 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.