mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-27 12:13:53 +00:00
* xhr-upload: redo limit option using different strategy
* xhr-upload: fix marking requests as done
* Move duplicate createEventTracker definitions to @uppy/utils
* tus: new cancellation for local uploads
* tus: fix cancelling queued uploads
* tus: fix wrong name
* aws-s3-multipart: smol refactor
* aws-s3-multipart: new cancellation style
* aws-s3: new cancellation
* utils: port limitPromises test to RateLimitedQueue
* timing fix?
* tus: new cancellation on websocket
* xhr-upload: implement cancellation for remote uploads
* aws-s3-multipart: port to new cancellation
* utils: remove limitPromises
* xhr-upload: remove pause/resume code
* xhr-upload: clean up event listeners
* xhr-upload: extract progress timer to separate class
* Move ProgressTimeout class to utils
* utils: update typings
* Fix lint
* tus: make pause/resume respect the rate limiting queue
* tus: try to explain some of the tricky things at play in the Tus#upload method
* aws-s3-multipart: add missing { abort: true }
* aws-s3-multipart: make pause/resume respect the rate limiting queue
* eslintrc.json - fixed eslint warnings for jsdoc
* Revert "eslintrc.json - fixed eslint warnings for jsdoc"
This reverts commit 50b24773ce.
* eslintrc.json - allow indentation in jsdoc comments
* xhr-upload: fix promise return value
* tus: fix promise return value
* tus: add missing `return () => {}`
* utils: typing export type fixes
* tus: add more jsdoc
* companion-client: add missing SocketOptions type
* utils: fix more export typings
* core,companion-client,tus: more typings tweaking
* companion-client: test fix 😩
* companion-client: add type for Socket#open
* tus: fix emit() call
* add local cancellation fuzz....ish? test
37 lines
1.2 KiB
Bash
Executable file
37 lines
1.2 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -o pipefail
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o xtrace
|
|
|
|
# Set magic variables for current file & dir
|
|
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
|
|
__base="$(basename ${__file} .sh)"
|
|
__root="$(cd "$(dirname "${__dir}")" && pwd)"
|
|
|
|
# Tests using a simple build setup.
|
|
tests="chaos-monkey i18n-drag-drop providers thumbnails transloadit tus-drag-drop url-plugin xhr-limit"
|
|
|
|
for t in $tests; do
|
|
mkdir -p "${__root}/test/endtoend/$t/dist"
|
|
cp "${__root}/packages/uppy/dist/uppy.min.css" "${__root}/test/endtoend/$t/dist"
|
|
cp "${__root}/test/endtoend/$t/index.html" "${__root}/test/endtoend/$t/dist"
|
|
browserify "${__root}/test/endtoend/$t/main.js" \
|
|
-o "${__root}/test/endtoend/$t/dist/bundle.js" \
|
|
-t envify \
|
|
-t babelify
|
|
done
|
|
|
|
# Speeecial tests that need custom builds.
|
|
pushd "${__root}/test/endtoend/create-react-app"
|
|
npm install
|
|
REACT_APP_ON_TRAVIS="${TRAVIS:-}" npm run build
|
|
popd
|
|
pushd "${__root}/test/endtoend/typescript"
|
|
mkdir -p dist
|
|
cp "${__root}/packages/uppy/dist/uppy.min.css" dist/
|
|
cp index.html dist/
|
|
browserify main.ts -t envify -p [ tsify --target ES3 ] -o dist/bundle.js
|
|
popd
|