From 10c8e31abb600f7c31e83df818428813580460db Mon Sep 17 00:00:00 2001 From: Dmytro Klymenko <145493125+tech-dm-klymenko@users.noreply.github.com> Date: Mon, 9 Sep 2024 23:05:23 +0200 Subject: [PATCH] docs(watch-mode): update running instructions (#13527) Co-authored-by: Christian Bromann --- .devcontainer/devcontainer.json | 2 +- .gitpod.yml | 2 +- CONTRIBUTING.md | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c7d516325..6f7339dba 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -36,7 +36,7 @@ "postCreateCommand": "npm install && npm run setup", "waitFor": "postCreateCommand", "postAttachCommand": { - "WebdriverIO Development Environment": "npm run watch", + "WebdriverIO Development Environment": "npm run dev", "Preview of the Documentation Page": "cd website && npm install && npm start -- --host 0.0.0.0", "Code Coverage Overview": "npm run test:unit && cd coverage && http-server -p 8000" }, diff --git a/.gitpod.yml b/.gitpod.yml index 977f9a7b8..bbed6ad64 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -22,7 +22,7 @@ tasks: pnpm install pnpm run setup gp sync-done installation - command: pnpm run watch + command: pnpm run dev - name: Welcome Bash init: gp sync-await installation command: node .gitpod/welcome.mjs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dbdb00718..acd6fa671 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -163,14 +163,14 @@ You can immediately start working on the code using [a pre-setup Gitpod environm If you start making changes to specific packages, make sure you listen to file changes and transpile the code every time you press save. To do that for all packages, run: ```sh -npm run watch +npm run dev ``` If you only work on a single package, you can watch only for that one by calling: ```sh -# e.g. `$ pnpm run watch wdio-runner` -$ pnpm run watch +# e.g. `$ pnpm run dev wdio-runner` +$ pnpm run dev ``` It is also a good idea to run vitest in watch mode while developing on a single package to see if changes affect any tests: