Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jayphelps committed Mar 29, 2018
1 parent 3937eb3 commit a5ec273
Show file tree
Hide file tree
Showing 10 changed files with 444 additions and 415 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
package-lock.json
bower_components/
node_modules/
dist/
sauce_connect/
sauce_connect.log
1 change: 1 addition & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"eqnull": true,
"browser": true,
"worker": true,
"node": true,
"globals": {
"JSON": false,
"URLSearchParams": false
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "fetch",
"main": "fetch.js",
"main": "dist/whatwg-fetch.js",
"ignore": [
".*",
"*.md",
"examples/",
"Makefile",
"package.json",
"script/",
"test/"
"test/",
"src/"
]
}
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<script src="../fetch.js"></script>
<script src="../dist/whatwg-fetch.js"></script>
</head>
<body>
<script>
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "whatwg-fetch",
"description": "A window.fetch polyfill.",
"version": "2.0.3",
"main": "fetch.js",
"main": "src/index.js",
"repository": "github/fetch",
"license": "MIT",
"devDependencies": {
Expand All @@ -11,13 +11,17 @@
"mocha": "2.1.0",
"mocha-phantomjs-core": "2.0.1",
"promise-polyfill": "6.0.2",
"url-search-params": "0.6.1"
"url-search-params": "0.6.1",
"webpack": "^4.4.1",
"webpack-cli": "^2.0.13"
},
"files": [
"LICENSE",
"fetch.js"
"dist/whatwg-fetch.js"
],
"scripts": {
"build": "webpack",
"build:prod": "webpack --mode production --output dist/whatwg-fetch.min.js",
"test": "make"
}
}
Loading

0 comments on commit a5ec273

Please sign in to comment.