Skip to content

Commit

Permalink
Fixed Yaffle#84 - move JS files into src/
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 16, 2017
1 parent f4de577 commit 9d347dd
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ module.exports = function(grunt) {
}
},
build: {
src: 'eventsource.js',
dest: 'eventsource.min.js'
src: 'src/eventsource.js',
dest: 'src/eventsource.min.js'
}
}
});
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ npm install event-source-polyfill
bower install event-source-polyfill
```

Just include `eventsource.js` or `eventsource.min.js` in your page to use the polyfill.
Just include `src/eventsource.js` or `src/eventsource.min.js` in your page to use the polyfill.


Browser support:
Expand Down Expand Up @@ -46,7 +46,7 @@ Specification:
Build:
------

* To build EventSource, just install npm modules (`npm install`) and then run the build (`npm run build`). It should generate a new version of eventsource.min.js.
* To build EventSource, just install npm modules (`npm install`) and then run the build (`npm run build`). It should generate a new version of `src/eventsource.min.js`.

Notes:
-----
Expand Down Expand Up @@ -114,7 +114,7 @@ http.createServer(function (request, response) {
if (pathname === "/") {
pathname = "/index.html";
}
if (pathname === "/index.html" || pathname === "../eventsource.js") {
if (pathname === "/index.html" || pathname === "../src/eventsource.js") {
response.writeHead(200, {
"Content-Type": pathname === "/index.html" ? "text/html" : "text/javascript"
});
Expand Down Expand Up @@ -165,7 +165,7 @@ index.html (php/index.html):
<meta charset="utf-8" />
<title>EventSource example</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="../eventsource.js"></script>
<script src="../src/eventsource.js"></script>
<script>
var es = new EventSource("events.php");
var listener = function (event) {
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "event-source-polyfill",
"version": "0.0.8",
"main": "eventsource.js"
"main": "src/eventsource.js"
}
4 changes: 2 additions & 2 deletions component.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"dependencies": {},
"development": {},
"license": "MIT",
"main": "eventsource.js",
"main": "src/eventsource.js",
"scripts": [
"eventsource.js"
"src/eventsource.js"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "event-source-polyfill",
"version": "0.0.9",
"description": "A polyfill for http://www.w3.org/TR/eventsource/ ",
"main": "eventsource.js",
"main": "src/eventsource.js",
"scripts": {
"build": "grunt"
},
Expand Down
2 changes: 1 addition & 1 deletion php/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<title>EventSource example</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="../eventsource.js"></script>
<script src="../src/eventsource.js"></script>
<script>
var es = new EventSource("events.php");
var listener = function (event) {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion eventsource.min.js → src/eventsource.min.js

Large diffs are not rendered by default.

0 comments on commit 9d347dd

Please sign in to comment.