diff --git a/.eslintrc.js b/.eslintrc.js index 0a2e6ea036..b9e1abc235 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -198,6 +198,7 @@ module.exports = { 'examples/multiple-instances/*.js', 'examples/node-xhr/*.js', 'examples/php-xhr/*.js', + 'examples/python-xhr/*.js', 'examples/transloadit-markdown-bin/*.js', 'examples/xhr-bundle/*.js', 'private/dev/*.js', diff --git a/examples/python-xhr/.gitignore b/examples/python-xhr/.gitignore index 4f15b1cceb..8fc0d80271 100644 --- a/examples/python-xhr/.gitignore +++ b/examples/python-xhr/.gitignore @@ -1,2 +1 @@ -uppy.min.css -uploads +uploads/ diff --git a/examples/python-xhr/readme.md b/examples/python-xhr/README.md similarity index 72% rename from examples/python-xhr/readme.md rename to examples/python-xhr/README.md index 71d2a5e30e..4048247a8d 100644 --- a/examples/python-xhr/readme.md +++ b/examples/python-xhr/README.md @@ -6,22 +6,21 @@ This example uses a Python Flask server and `@uppy/xhr-upload` to upload files t 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 npm dependencies for this example. Additionally, this example uses python dependencies. Move into this directory, and install them using pip: -```bash -cd ./examples/python-xhr -pip install -r requirements.txt +```sh +corepack yarn workspace @uppy-example/python-xhr installPythonDeps ``` Then, again in the **repository root**, start this example by doing: -```bash -npm run example python-xhr +```sh +corepack yarn workspace @uppy-example/python-xhr start ``` diff --git a/examples/python-xhr/index.html b/examples/python-xhr/index.html index 9a777c91ff..0e89baa514 100644 --- a/examples/python-xhr/index.html +++ b/examples/python-xhr/index.html @@ -4,9 +4,9 @@