docs(watch-mode): update running instructions (#13527)
Co-authored-by: Christian Bromann <git@bromann.dev>
This commit is contained in:
parent
da3cbfd942
commit
10c8e31abb
3 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 <package-name>
|
||||
# e.g. `$ pnpm run dev wdio-runner`
|
||||
$ pnpm run dev <package-name>
|
||||
```
|
||||
|
||||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue