diff --git a/.eslintrc.js b/.eslintrc.js index f0c9f318e5..88ab3dc9b7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -195,6 +195,7 @@ module.exports = { 'examples/aws-presigned-url/*.js', 'examples/bundled/*.js', 'examples/custom-provider/client/*.js', + 'examples/node-xhr/*.js', 'examples/multiple-instances/*.js', 'examples/transloadit-markdown-bin/*.js', 'examples/xhr-bundle/*.js', diff --git a/examples/node-xhr/.gitignore b/examples/node-xhr/.gitignore index 4f15b1cceb..8fc0d80271 100644 --- a/examples/node-xhr/.gitignore +++ b/examples/node-xhr/.gitignore @@ -1,2 +1 @@ -uppy.min.css -uploads +uploads/ diff --git a/examples/node-xhr/readme.md b/examples/node-xhr/README.md similarity index 76% rename from examples/node-xhr/readme.md rename to examples/node-xhr/README.md index 697a2f8da5..5913d02e5f 100644 --- a/examples/node-xhr/readme.md +++ b/examples/node-xhr/README.md @@ -6,15 +6,15 @@ This example uses Node server and `@uppy/xhr-upload` to upload files to the loca To run this example, make sure you've correctly installed the **repository root**: -```bash -npm install -npm run build +```sh +corepack yarn install +corepack yarn build ``` That will also install the dependencies for this example. Then, again in the **repository root**, start this example by doing: -```bash -npm run example node-xhr +```sh +corepack yarn workspace @uppy-example/node-xhr start ``` diff --git a/examples/node-xhr/index.html b/examples/node-xhr/index.html index 25bccf949c..b768a79a1a 100644 --- a/examples/node-xhr/index.html +++ b/examples/node-xhr/index.html @@ -4,9 +4,9 @@