Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/distribute as UMD #616

Merged
merged 13 commits into from May 23, 2018
39 changes: 39 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,39 @@
{
"parserOptions": {
"sourceType": "module"
},
"globals": {
"WHATWGFetch": true,
"ArrayBuffer": true,
"DataView": true,
"Promise": true,
"Symbol": true,
"Uint8Array": true
},
"extends": [
"plugin:github/browser"
],
"rules": {
"object-shorthand": "off"
},
"overrides": [
{
"files": ["test/*.js"],
"env": {
"browser": true,
"mocha": true
},
"globals": {
"assert": true,
"chai": true,
"FileReaderSync": true
}
},
{
"files": ["test/worker.js"],
"env": {
"worker": true
}
}
]
}
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
.env
package-lock.json
dist/
bower_components/
node_modules/
sauce_connect/
Expand Down
25 changes: 0 additions & 25 deletions .jshintrc

This file was deleted.

2 changes: 2 additions & 0 deletions .travis.yml
@@ -1,5 +1,7 @@
sudo: false
language: node_js
node_js:
- "node"
cache:
directories:
- phantomjs
Expand Down
7 changes: 5 additions & 2 deletions Makefile
@@ -1,8 +1,11 @@
test: node_modules/ lint
test: lint dist/fetch.umd.js
./script/test

lint: node_modules/
./node_modules/.bin/jshint *.js test/*.js
./node_modules/.bin/eslint --report-unused-disable-directives *.js test/*.js

dist/fetch.umd.js: fetch.js rollup.config.js node_modules/
./node_modules/.bin/rollup -c

node_modules/:
npm install
Expand Down