Skip to content

Commit c5c669a

Browse files
committed
Create a Makefile to pull down our js dependencies and hook it up to npm install.
1 parent 7f5422c commit c5c669a

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all: public/jquery-1.10.2.min.js public/raphael-2.1.0.min.js
2+
3+
public/jquery-1.10.2.min.js:
4+
curl -o public/jquery-1.10.2.min.js http://code.jquery.com/jquery-1.10.2.min.js
5+
6+
public/raphael-2.1.0.min.js:
7+
curl -o public/raphael-2.1.0.min.js https://raw.github.com/DmitryBaranovskiy/raphael/v2.1.0/raphael-min.js
8+
9+
clean:
10+
rm -f public/jquery-1.10.2.min.js public/raphael-2.1.0.min.js

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ Getting Started
3131
# Inside the ticked directory; installing locally
3232
npm install
3333

34-
(cd public && curl -O http://code.jquery.com/jquery-1.10.2.min.js)
35-
(cd public && curl -o raphael-2.1.0.min.js https://raw.github.com/DmitryBaranovskiy/raphael/v2.1.0/raphael-min.js)
36-
3734
4. start the ticked server.
3835

3936
node ticked.js

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"type" : "git",
2323
"url" : "https://github.com/aronatkins/ticked"
2424
},
25-
"scripts": {"start": "node ticked.js"},
25+
"scripts": {
26+
"start" : "node ticked.js",
27+
"install" : "make"
28+
},
2629
"private" : true
27-
}
30+
}

public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script src="/socket.io/socket.io.js"></script>
77
<script src="/jquery-1.10.2.min.js"></script>
88
<script src="/raphael-2.1.0.min.js"></script>
9-
<title>ticker</title>
9+
<title>ticked</title>
1010
<style>
1111
#buckets div { width: 150px; float: left; }
1212
</style>

0 commit comments

Comments
 (0)