Commit graph

272 commits

Author SHA1 Message Date
Renée Kooi
7b2283d8ef
examples: add npm run example script
a bad result from adding the examples as dependencies of the root
repository is that they now don't have access to the npm binaries they
need to run in their own folder, because they are installed into the
root repository instead.

this works around that issue.

we may need to consider undoing that change and making the examples work
as standalone projects again, that's easier to understand.

fixes #2024 for now.
2020-01-15 11:16:56 +01:00
Renée Kooi
f2a0c32aa0
build: i guess --npm-client is no longer a thing? 2019-12-11 14:43:57 +01:00
Renée Kooi
5d906440c2 locales: Rename es_GL → gl_ES (#1929)
* locales: Rename es_GL → gl_ES

the `es-GL` locale means Spanish in Greenland.
`gl-ES` means Galician in Spain.

I just renamed the file here which is a breaking change. I think that's
acceptable for the locales package, as it isn't a dependency of anything
else. `@uppy/locales@2.0` doesn't affect anything. what do y'all think?

* locales: add backwords compat module for es_GL

* add comment with reasoning
2019-11-08 18:31:05 +03:00
Renée Kooi
b501b7fce2
Let lerna ask for OTP 2019-10-14 16:37:13 +02:00
Renée Kooi
733de659da
Upgrade standard to v14 (#1860)
* Update eslint dependencies.

* standard --fix

* build: disable handler name lint rule

* status-bar: manually fix lint errors

* webcam: manually fix lint errors

* url: manually fix lint errors

* react-native: manually fix lint errors

* dashboard: manually fix lint errors

* informer: manually fix linting errors

* progress-bar: manually fix lint errors

* provider-views: manually fix lint errors

* redux-dev-tools: manually fix lint errors

* build: disable buggy no-unused-vars rule

* examples: manually fix lint errors

* ` quotes for code things, ' for text things
2019-10-09 14:53:02 +02:00
Renée Kooi
bb8b66d918
Use more cancellation-friendly strategy for limit: N uploads (#1736)
* 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
2019-09-25 15:21:17 +02:00
Renée Kooi
c62ec3665d Update eslint to v6 (#1777)
* Update eslint

* Do eslint --fix

* Do not access Object.prototype method 'hasOwnProperty' from target object

* utils: add hasProperty

* eslint --fix

* Disable quote-props for locale files

* add back quotes in locale files

* revert locale files to state on master

* Update react-scripts
2019-08-13 21:45:30 +03:00
Renée Kooi
f40605548e
ci: post-merge tweaks 2019-07-19 12:31:15 +02:00
Renée Kooi
10bc79574e
lerna link convert (#1730)
* lerna link convert

* ci: use npm ci

* update lockfile

* companion: set `bin` to source file

Since typescript doesn't actually transform anything, we can just use
this.

In a next major version we could set `noEmit: true` in the tsconfig and
stop publishing `lib`.

* companion: do chmod +x on start-server.js

* build: remove obsolete lerna config

* build: explicitly install latest versions when building e2e tests for ci

* Remove versions from private packages

* fix regex

* try fix

* ci: force npm to install to endtoend folder

* ci: fold up e2e build output

* Update netlify deploy preview command

* Remove mentions of npm run bootstrap

* Edit .github/CONTRIBUTING.md instead

* companion: add proxy executable

* companion: fix publish

* Downgrade jest to appease create-react-app
2019-07-19 12:16:36 +02:00
Renée Kooi
5d24dfcc78
ci: deploy tweak #3465242374 2019-07-15 12:12:50 +02:00
Uppy Bot
547364d295
ci: do the env var checks for deploys inside their scripts 2019-07-15 11:54:46 +02:00
Evgenia Karunus
70acbf7861 Adjust i18n (#1712)
* @uppy/locales - updated Nl translation as per Kevin

* @uppy/provider-views - moved all translations to Core, removed dependency on Dashboard

* @uppy/locales - added missing translations for 'Add more'
2019-07-12 18:04:42 +02:00
Renée Kooi
54c347dfb7
ci: use a fancy matrix (#1709)
* ci: try a fancy matrix

* ci: separate lint build

* build: update some dependencies for node 12 compat

* ci: do typing checks as part of LINT run

* ci: conditionally run ACCEPTANCE and WEBSITE jobs

* ci: is sauce checking domain names or what?

* ci: only build the website when we actually deploy it

* Revert "ci: is sauce checking domain names or what?"

This reverts commit a29fc7ecf9.

* ci: i might have misinterpreted this config?

* ci: rename acceptance → endtoend for consistency

* test: may need to update element reference after click?

* ci: try to only use sauce connect for endtoend runs

* ci: fix sauce_connect property name

* ci: comment the travis config a bit [skip ci]
2019-07-09 11:22:49 +02:00
Renée Kooi
0a40f2c444
Update webdriverio to v5 (#1675)
* build: update webdriverio to v5

* build: update wdio services config syntax

* e2e test updates for wdio 5

* Sync pinned versions between repo root and companion

* build: enable all e2e tests for this PR run

* waitForExist

* test: await browser.url() calls

* test: awaitify url-plugin test

* test: use sauceConnect

* test: upload files to sauce before using them

* fall back to fakechoosefile a lot?

* fall back to fakechoosefile more

* Disable file selection on saucelabs

* test: need to await this thing

* test: make more-sure that the input is visible

* test: use currently low load transloadit region so i dont have to wait

* test: update but disable xhr-limit

* test: change the order

* test: newer firefoxes

* test: change the order back

* kinda sucks that they only have super old browsers on linux

* ci: disable url-plugin and transloadit e2e tests again

* test: use local tus-node-server for integration tests

* test: use envify to check env variables and select appropriate URL

* test: use companion.test:1080 for tus uploads on Travis

* test: fix env vars in typescript and CRA tests

* test: use getBoundingClientRect, may work better in android

* test: try getSize AND getBoundingClientRect

* test: do not check image width in android

* test: allow retrying tests that are prone to flakiness

* test: be more verbose during e2e tests

* test: force <input> visibility in more tests

* test: warn if using test:endtoend not on CI
2019-07-05 13:45:43 +02:00
Kevin van Zonneveld
5d55580868 Update bin/upload-to-cdn.js 2019-06-12 11:09:29 +02:00
Renée Kooi
dabc10b3bd
Fix uploadcdn for local build 2019-06-07 14:52:36 +02:00
Renée Kooi
a9a563169d
Fix mime types on CDN (#1636)
* Fix mime types on CDN

The mime-types library is already in use by companion, hence no lockfile
update

* fix region and bucket

* add --force to overwrite existing release

* Fix for doing --force without a specific version
2019-06-05 20:04:10 +02:00
Renée Kooi
9eb274cfbd
Merge branch 'master' into fix/uploadcdn 2019-06-05 16:21:14 +02:00
Renée Kooi
a07d81c5ef
add events.once 2019-05-29 10:52:00 +02:00
Renée Kooi
42bb2c754f
Add LOCAL=1 env var for npm run release 2019-05-29 10:20:17 +02:00
Renée Kooi
c17e992485
Fix discify script now that we have .json files in build 2019-05-27 16:53:47 +02:00
Renée Kooi
baf7ce114a
Really check for release commit 2019-05-27 16:53:47 +02:00
Renée Kooi
2c8173a563
Ensure everything is rebuilt after version bump 2019-05-27 16:53:47 +02:00
Renée Kooi
685cca283c
Update after-version-bump description 2019-05-27 16:53:47 +02:00
Renée Kooi
999253f034
Account for gitignores when running git add 2019-05-27 16:53:32 +02:00
Renée Kooi
bc6da2a637
Run build after version bump 2019-05-27 16:53:27 +02:00
Renée Kooi
27da43a8c9
Convert sync-version-numbers to Node.js script 2019-05-27 16:38:50 +02:00
Renée Kooi
98ec8ebdba
Merge branch 'master' into fix/uploadcdn 2019-05-27 12:13:47 +02:00
Renée Kooi
fdad0d4e80
uploadcdn: remove old script 2019-05-27 12:10:38 +02:00
Renée Kooi
d3e7bc3181
uploadcdn: check for existing tag 2019-05-27 12:10:22 +02:00
Kevin van Zonneveld
4eb62eb787
Fix typo 2019-05-22 16:36:36 +02:00
Renée Kooi
ee1d9e7928
uploadcdn: update comments 2019-05-22 16:23:37 +02:00
Renée Kooi
722c31262d
Switch to Node.js uploadcdn script 2019-05-22 12:21:39 +02:00
Renée Kooi
1abebd7506
do the upload-to-cdn.js thing 2019-05-20 15:35:43 +02:00
Renée Kooi
2c435a0ab5
test2 2019-05-20 14:35:40 +02:00
Renée Kooi
aced95aad2
Upgrade Babel to v7 and Jest to 24 2019-05-20 11:27:00 +02:00
Artur Paikin
3b154608dd disable upload-to-cdn and sync-version-numbers until the fix
until upload-to-cdn is refactored to publish multiple packages
revert when upload-to-cdn is updated

//cc @goto-bus-stop
2019-05-17 17:51:45 +03:00
Renée Kooi
1ad322497f
Release 2019-05-08 15:27:15 +02:00
Renée Kooi
61329656f2
build: add final manual intervention just before releasing 2019-05-08 15:23:05 +02:00
Artur Paikin
25d4b3678b Release 2019-04-25 23:03:25 +03:00
Kevin van Zonneveld
ec8c725aaa Help translators by showing what the English is 2019-04-24 16:19:31 +02:00
Kevin van Zonneveld
988dff9462 Update bin/upload-to-cdn.sh 2019-04-23 14:56:52 +02:00
Kevin van Zonneveld
c426ea5016 Update bin/upload-to-cdn.sh 2019-04-23 09:39:06 +02:00
Artur Paikin
0f95529cc5 Release 2019-04-19 15:46:25 +03:00
Artur Paikin
3f61051e8a ignore react-native when building locale pack 2019-04-17 18:51:17 +03:00
Artur Paikin
28fce1a137 Default locale for all plugins (#1443)
* first swing at building locale pack

* expose default locale on the plugin instance

* write a pretty en_US locale to a file, using stringify-object and template.js

* generated locale pack

* start adding a script that checks for unused locale strings

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Update bin/build-locale-pack.js

* Console output improvements

* Also sort plugin locale keys

* Support dependencies when digging up sources

because e.g. 'emptyFolderAdded' is used in provider-views but set in Dashboard's defaultLocale

* More complex matching

So can can support cases like: `uppy.i18n(error.isAuthError ? 'companionAuthError' : 'companionError')`

* Remaining const defaultLocale -> this.defaultLocale

* Update packages/@uppy/locales/en_US.js

* Mock browser environment so all plugins can be instantiated

* Clean up output a bit

* Update bin/build-locale-pack.js

* Add all remaining plugin's locales to en_US bundle

* Update packages/@uppy/dashboard/src/index.js

* Update en_US.js

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* remove unused strings

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Also write csv because that makes it real easy to import to friendlier places for translators /cc @arturi

* don’t set locale: this.defaultLocale — it overrides the lang pack

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Add 'russian plural' for english, for consistency

Allows us to signal that this is possible in new target languages, and also run better linting

* Cleanup

* No longer write csv

* WIP for NL

* Create package.json

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* move locales to /src

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* ignore locales themselves

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* build minified locale packs

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* expose Uppy.locale = {} placeholder object

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Update ru_RU.js

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* add locale bundles to example

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Upload locales to cdn

* Allow to run tests with upload-to-cdn by setting a versionSuffix

* Move locale build to function, to make room for test()

* Bring ru_RU in sync with English

now that we've added 3 plural types across the board

* Document using locales as a consuming dev, and plugin dev

* Add linting for missing/excess locale strings

* Add the locales we had to remove to the legacy folder

and explain why they cannot make it back

* Move legacy outside of src so they are definitely not transpiled, etc

* Update packages/@uppy/locales/src/nl_NL.js

* Update website/src/docs/uppy.md
2019-04-17 13:34:23 +02:00
Kevin van Zonneveld
b9f0575c42 Update bin/sync-version-numbers 2019-04-05 14:01:15 +02:00
Artur Paikin
7ae8af44ab Release 2019-04-04 19:31:09 +03:00
Kevin van Zonneveld
8030f7032f Also update the uppy@0.30.0 version numbers in docs automatically 2019-04-04 16:24:04 +02:00
Kevin van Zonneveld
5f4f1cf17e
Refactor npm scripts, clean up unused ones (#1392)
Co-Authored-By: Artur Paikin <artur@arturpaikin.com>
2019-03-29 14:55:23 +01:00