Commit graph

3 commits

Author SHA1 Message Date
Renée Kooi
2c4e7eaa68
Move Translator into @uppy/utils package.
Available as `@uppy/utils/lib/Translator`.
The Translator tests were using `Core()` instead of `Translator()`, so I
changed it to using `Translator` instances directly. The functionality
being tested did not change.

Steps taken:

```bash
git mv src/core/Translator.* packages/@uppy/utils/src
sed -i 's/[./]*\/core\/Translator/@uppy\/utils\/lib\/Translator/' src/**/*.js
vim packages/@uppy/utils/src/Translator.test.js # Fix tests
```
2018-06-14 16:31:19 +02:00
Renée Kooi
2e257b7e55
Move utils files to @uppy/utils package.
And rewrite all the require calls.

```bash
git mv src/utils/* packages/@uppy/utils/src
sed -i 's/[./]*\/utils\//@uppy\/utils\/lib\//' src/**/*.js # transform (../)*utils → @uppy/utils
```
2018-06-14 16:31:19 +02:00
Renée Kooi
c1d378de21
Add @uppy/utils skeleton.
```bash
mkdir -p packages/@uppy
cp -R package-template packages/@uppy/utils
vim packages/@uppy/utils/{README.md,package.json}
```

Next up, copying the implementation.
2018-06-14 16:31:19 +02:00