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). NW.js has to be installed on your machine in order to run this program - using a browser does not work. Have a look at the NW.js wiki page to get some more informations on how to run NW.js apps. Also please ensure that either io.js or Node.js and also npm are installed so you can build the program.
Building is simple:
# 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
# build and compile - executable will be created inside the build/releases folder
grunt release
Run grunt --help
to list all other available grunt tasks.
While developing, you can choose between two methods to run the program:
-
the "easy" method Simply run
grunt dev
. This task builds the project to thebuild/tmp
folder with enabled debug flags and also starts a watcher task which rebuilds changed content from thesrc
folder. Now start NW.js (/path/to/nw build/tmp
). -
the "source" method Another way of running the program is by starting it directly from the
src
folder (/path/to/nw src
). Before you can do this, you first need to run thegrunt metadata less:source
tasks once. If you're working on the stylesheets, then you should start the watcher taskgrunt less:source watch:lesssource
which automatically compiles it after each change.
The easiest way of debugging a NW.js application is by running nw
with the --remote-debugging-port=8888
parameter. 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 git@github.com:<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.