From a5ec27348af874916d860f611b6f166aaad9ae5a Mon Sep 17 00:00:00 2001 From: Jay Phelps Date: Thu, 29 Mar 2018 18:34:30 -0400 Subject: [PATCH] WIP --- .gitignore | 1 + .jshintrc | 1 + Makefile | 2 +- bower.json | 5 +- examples/index.html | 2 +- package.json | 10 +- src/index.js | 822 ++++++++++++++++++++++---------------------- test/test.html | 2 +- test/worker.js | 2 +- webpack.config.js | 12 + 10 files changed, 444 insertions(+), 415 deletions(-) create mode 100644 webpack.config.js diff --git a/.gitignore b/.gitignore index d65f9407..515a12db 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ package-lock.json bower_components/ node_modules/ +dist/ sauce_connect/ sauce_connect.log diff --git a/.jshintrc b/.jshintrc index c451b546..6e62d17d 100644 --- a/.jshintrc +++ b/.jshintrc @@ -18,6 +18,7 @@ "eqnull": true, "browser": true, "worker": true, + "node": true, "globals": { "JSON": false, "URLSearchParams": false diff --git a/Makefile b/Makefile index 2c8fe433..c256400b 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ test: node_modules/ lint ./script/test lint: node_modules/ - ./node_modules/.bin/jshint *.js test/*.js + ./node_modules/.bin/jshint *.js src/*.js test/*.js node_modules/: npm install diff --git a/bower.json b/bower.json index 266f12dc..d7658474 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "fetch", - "main": "fetch.js", + "main": "dist/whatwg-fetch.js", "ignore": [ ".*", "*.md", @@ -8,6 +8,7 @@ "Makefile", "package.json", "script/", - "test/" + "test/", + "src/" ] } diff --git a/examples/index.html b/examples/index.html index 546a695c..6a664f40 100644 --- a/examples/index.html +++ b/examples/index.html @@ -2,7 +2,7 @@ - + - +