Skip to content

Commit 6230e84

Browse files
author
Zeno Rocha
committed
Fetch dependencies using Bower - Fixes zenorocha#28
1 parent da19648 commit 6230e84

8 files changed

+38
-76
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
22
node_modules
3+
bower_components

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
[![Github Repo Demonstration](http://f.cl.ly/items/2I3u29002A1g2w1R1I0X/Screen%20Shot%202013-01-17%20at%202.16.36%20PM.png)](http://zenorocha.github.com/jquery-github/)
44

5+
## Getting started
6+
7+
Three quick start options are available:
8+
9+
* [Download latest release](https://github.com/zenorocha/jquery-github/releases)
10+
* Clone the repo: `[email protected]:zenorocha/jquery-github.git`
11+
* Install with [Bower](http://bower.io): `bower install bootstrap`
12+
13+
## Setup
14+
15+
Use [Bower](http://bower.io) to fetch all dependencies and you're ready to go:
16+
17+
```sh
18+
$ bower install
19+
```
20+
521
## Usage
622

723
Create an attribute called `data-repo`:

bower.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "jquery-github",
3+
"version": "0.3.2",
4+
"homepage": "https://github.com/zenorocha/jquery-github",
5+
"authors": [
6+
"Zeno Rocha <[email protected]>"
7+
],
8+
"description": "A jQuery plugin to display your Github Repositories.",
9+
"main": "src/jquery.github.js",
10+
"keywords": [
11+
"jquery",
12+
"github"
13+
],
14+
"license": "MIT",
15+
"dependencies": {
16+
"zepto": "~1.0.0",
17+
"jquery": "~2.0.3"
18+
}
19+
}

demo/index-zepto.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ <h1>jQuery Github</h1>
3434

3535
<img id="github-logo" src="img/github-cat.png" alt="Github Cat" />
3636

37-
<script src="../lib/zepto.min.js"></script>
38-
<script src="../lib/zepto.data.js"></script>
37+
<script src="../bower_components/zepto/zepto.min.js"></script>
3938
<script src="../src/jquery.github.js"></script>
4039

4140
<script>

demo/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1>jQuery Github</h1>
3434

3535
<img id="github-logo" src="img/github-cat.png" alt="Github Cat" />
3636

37-
<script src="../lib/jquery.min.js"></script>
37+
<script src="../bower_components/jquery/jquery.min.js"></script>
3838
<script src="../src/jquery.github.js"></script>
3939

4040
<script>

lib/jquery.min.js

-4
This file was deleted.

lib/zepto.data.js

-67
This file was deleted.

lib/zepto.min.js

-2
This file was deleted.

0 commit comments

Comments
 (0)