0.0.7 • Published 10 years ago
gh-badge v0.0.7
Gh-badge
This is an ember addon that shows a list of commits for a github repository.
Installation
ember install gh-badge
Usage
- Firstly you'll need a Github API key/personal access token. Get it here
- You'll need to store the token in
config/environment.jslike so
var ENV = {
APP: {
GITHUB_AUTH: '<Your Token Here>'
}
}- In your template file where you'd like the badge(s) to show up, use the following markup
{{gh-badge user='emberjs' repo='ember.js'}}. Replace the user and repo with whatever you'd like. Note that the repo has to be public in order for the addon to work.
Running
ember server- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:testallto test your addon against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.