diff --git a/.eslintrc.js b/.eslintrc.js index 88ab3dc9b..0a2e6ea03 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -195,8 +195,9 @@ module.exports = { 'examples/aws-presigned-url/*.js', 'examples/bundled/*.js', 'examples/custom-provider/client/*.js', - 'examples/node-xhr/*.js', 'examples/multiple-instances/*.js', + 'examples/node-xhr/*.js', + 'examples/php-xhr/*.js', 'examples/transloadit-markdown-bin/*.js', 'examples/xhr-bundle/*.js', 'private/dev/*.js', diff --git a/examples/php-xhr/.gitignore b/examples/php-xhr/.gitignore index 4f15b1cce..8fc0d8027 100644 --- a/examples/php-xhr/.gitignore +++ b/examples/php-xhr/.gitignore @@ -1,2 +1 @@ -uppy.min.css -uploads +uploads/ diff --git a/examples/php-xhr/readme.md b/examples/php-xhr/README.md similarity index 76% rename from examples/php-xhr/readme.md rename to examples/php-xhr/README.md index 28968f359..71f74de43 100644 --- a/examples/php-xhr/readme.md +++ b/examples/php-xhr/README.md @@ -6,15 +6,15 @@ This example uses PHP server and `@uppy/xhr-upload` to upload files to the local 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 php-xhr +```sh +corepack yarn workspace @uppy-example/php-xhr start ``` diff --git a/examples/php-xhr/index.html b/examples/php-xhr/index.html index dd6992432..8a98441ec 100644 --- a/examples/php-xhr/index.html +++ b/examples/php-xhr/index.html @@ -4,9 +4,8 @@