Commit graph

491 commits

Author SHA1 Message Date
Renée Kooi
165ca03416
update lockfile + depend explicitly on eslint-plugin-react
eslint-plugin-react is used by eslint-config-standard-preact, and is a
dependency of it. when eslint is run, it tries to
require('eslint-plugin-react') from the root of the project, which isn't
guaranteed to work (although npm hoisting will _normally_ let it work).
if we depend on it explicitly this will always work.
2019-04-24 11:42:11 +02:00
Kevin van Zonneveld
692a807784 Fix locale pack building on Travis
complaining about requiring companion not working
2019-04-17 14:30:43 +02: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
Artur Paikin
40a2557a6b add ** to watch, dev script only watches lib and css
//cc @kvz @lakesare

https://github.com/mysticatea/npm-run-all/blob/HEAD/docs/npm-run-all.md#glob-like-pattern-matching-for-script-names
2019-04-04 17:46:46 +03:00
Artur Paikin
feb98f44bb add watch:css to web:start 2019-04-01 15:20:11 +03:00
Renée Kooi
e9f20282bc
Update a bunch of dependencies 2019-04-01 11:20:57 +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
Kevin van Zonneveld
f0ca917a1e Refactor npm scripts (a little bit)
- sort them
- fix db touch in travis hexo clean
- rename update.js to inject.js which i think is less generic
- use colons (vs dashes) for delimiting as is idiomatic
2019-03-29 11:35:09 +01:00
Artur Paikin
952a9d9572 clean before deploying
//cc @kvz
2019-03-28 13:35:31 +03:00
Kevin van Zonneveld
3c65ce2520 Update package.json 2019-03-27 21:48:05 +01:00
Kevin van Zonneveld
73ec4a9467 touch db.json to combat travis not building with hexo-include-markdown
https://travis-ci.org/transloadit/uppy/builds/509314852#L3345
https://github.com/tea3/hexo-include-markdown/issues/2
2019-03-21 09:36:38 +01:00
Kevin van Zonneveld
ec4470acf1 More verbose websites builds to debug travis fail
https://travis-ci.org/transloadit/uppy/builds/509026120#L3461
2019-03-21 09:16:03 +01:00
Kevin van Zonneveld
f1e6cc65ff
Provide clarity about what we can and cannot support (#1314)
* First swing at support page

* Add hexo-include-markdown

* Move CONTRIBUTING.md to .github

* Update .github/SUPPORT.md

* Channel issues in the  GitHub tracker

* Inject integration help MD into website

* Fix include_markdown path

* Inject CONTRIBUTING in the same fashion as support options

* Flesh out support policy

* Inject into website

* Tweaks

* Update website/update.js

* Update website/src/_template/support.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* iterating

* iterate

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update website/src/support.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update website/src/_template/integration_help.md

* iterate

* Migrate to a table

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* WIP

* wip

* Update website/src/_template/integration_help.md

* Update .github/ISSUE_TEMPLATE/integration_help.md

* Add touch module

* Replace shelling out to GNU `sed` with native node

* Update website/update.js

* Inject new .github copies

* Move the pricing table to the website only /cc @arturi

* Update website/src/support.md

* Update website/src/support.md

* Update .github/CONTRIBUTING.md

* Update website/src/_template/contributing.md
2019-03-20 17:38:15 +01:00
Artur Paikin
eeb2db30c2 remove watch:fast 2019-03-06 20:15:00 +03:00
Artur Paikin
929c1ff164 remove extra rm -rf from clean 2019-02-22 21:51:29 +03:00
Artur Paikin
12792beea8 update clean lib/dist 2019-02-22 19:06:24 +03:00
Artur Paikin
f9a291f4dd add robodog to npm run cleanup
cc @kvz
2019-02-22 17:23:22 +03:00
Artur Paikin
b66b6c0ceb npm audit 2019-02-15 22:17:22 +03:00
Artur Paikin
af115f3ace dev example: re-build lib automatically, don’t open browser and no ghosts, start companion 2019-02-06 22:07:10 +03:00
Artur Paikin
3a48c9f232 Update to tus-js-client@1.6.0 with React Native support 2019-01-23 19:26:05 +03:00
Renée Kooi
d8a2a8c0b4
Build files before testing 2019-01-14 14:38:56 +01:00
Renée Kooi
c9e1c4d1ed
Only rebuild changed files with npm run build:lib
This makes it faster in most cases, so we have to wait less.

The FRESH=1 environment variable forces recompiling all source files,
and is used in the release script to be doubly sure that everything
we publish is up to date.

```bash
FRESH=1 npm run build:lib
```
2019-01-14 14:25:17 +01:00
Renée Kooi
5699e5962b
Add typescript integration test. 2018-12-20 14:52:57 +01:00
Artur Paikin
eda61b37e3 npm fix vulnerabilities 2018-12-19 16:07:45 +03:00
Renée Kooi
1a0878a851
Merge pull request #1131 from mattes3/master
Make Uppy's React components usable from Typescript
2018-12-10 15:50:12 +01:00
Artur Paikin
865f956ddf remove es6-promise from root package.json, since we are only using it in uppy package bundle 2018-12-06 16:40:31 +03:00
Matthias Bohlen
3ec9afc36d Merge from upstream repo, resolving conflicts. 2018-11-12 12:14:06 +01:00
Renée Kooi
62240aa4c1
Update deps so build works on Node 11 2018-11-05 10:50:43 +01:00
Matthias Bohlen
fce440ae9a Add missing dev dependency '@types/react'. 2018-11-04 19:20:47 +01:00
Renée Kooi
ae80ae668c
Update lerna. 2018-10-29 13:33:14 +01:00
Renée Kooi
d342c83ca4
Use lerna.json for command config. 2018-10-29 13:25:59 +01:00
Renée Kooi
465468a1d4
wip lerna 2018-10-29 13:25:57 +01:00
Renée Kooi
a67a558eec
Working test
Add tests for thumbnail:* events.

Show build output

Try adding a non image file?

fixes

Add -b flags to local acceptance tests

fix hanging thumbnail test

Add a corrupt image

revoke

Require passing integration tests

extended debugging?

Try more browser versions

it helps to pick a browser that's available

sort stuff in .travis.yml and add whitespace for easier navigation

[REVERT BEFORE MERGE] only run acceptance tests on this pr

make sure lerna publishes stuff to local

do git tag version during integration test

update lerna

fix install / bootstrap execution order

?

--no-ci

dont do npm ls because it errors with lerna

set a git branch name

blehbleh

ughhhhhhhhhhhh

onerror?

no onerror i guess

onerror 2

Revert "onerror 2"

This reverts commit 64d88551fa1cd337b27e25d16a604dd781a15b43.

onerror 3

more debug data

disable browsers that work

fix syntax for older browsers

thumbnails suite

check different edge versions

abc

use addeventlistener for error, which is different from onerror

no clue

skip thumb test in edge or whatever

Re enable other browsers.

re enable tasks

fix edge skip

this one was intentionally disabled

Remove debug leftovers

edge → supportschoosefile

:ready → :all-generated
2018-10-01 15:18:49 +02:00
Renée Kooi
b0d8d0f998
Add a version to root package.json so tools don't display undefined 2018-08-27 13:48:38 +02:00
Renée Kooi
4c67f4c685
Remove root uppy-server dependency. 2018-08-16 16:12:29 +02:00
Renée Kooi
784c8d3e6d
update lerna maybe? 2018-08-16 11:49:26 +02:00
Renée Kooi
9242ad95b5
Fix local registry plez 2018-08-16 11:40:11 +02:00
Ifedapo Olarewaju
6da00faf64 fix and re-enable companion test 2018-08-15 02:02:59 +03:00
Renée Kooi
328cd83d44
Update build deps. 2018-08-13 12:29:59 +02:00
Artur Paikin
863b1d1fb6 disable companion test in a different way
😜
2018-08-12 01:21:27 +01:00
Artur Paikin
4309f3e55a don’t test companion temporarily 2018-08-12 01:06:52 +01:00
Artur Paikin
e3c485923d update dependecies 2018-08-11 22:01:16 +01:00
Renée Kooi
28e8936fdc
Move jest config to a package.json key. 2018-07-23 17:01:14 +02:00
Renée Kooi
51dfe57b7c
Upgrade jest. 2018-07-23 15:56:25 +02:00
Ifedapo Olarewaju
6941b8ba6c refactor: do not export envs when starting companion 2018-07-22 18:53:57 +01:00
Ifedapo Olarewaju
96388449f6 refactor: use single eslint command 2018-07-22 18:53:57 +01:00
Ifedapo Olarewaju
b4dfde23f4 build: lint companion from root + lint-stage for companion 2018-07-22 18:53:57 +01:00
Ifedapo Olarewaju
9a841f693a refactor: rename service-dog -> companion 2018-07-22 18:53:57 +01:00
Ifedapo Olarewaju
55cc20a31c move uppy-server to "service-dog" 2018-07-22 18:53:56 +01:00
Renée Kooi
044250d706
Merge pull request #962 from transloadit/website-sizes
Update stats page with bundle sizes for each package.
2018-07-19 14:07:33 +02:00