Skip to content

Commit 018cb12

Browse files
committed
chore: update readme to explain scripts and add a way to focus e2e tests froms
1 parent 55951de commit 018cb12

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,16 @@ Join the [Svelte Discord server](https://svelte.dev/chat)!
4747

4848
## Development
4949

50-
- Run `pnpm i` to install dependencies
51-
- Run `pnpm dev` in `packages/vite-plugin-svelte` to autobuild plugin
52-
- Run `pnpm dev` in `packages/playground/xxx` to start a Vite app
53-
54-
Note that changes in the plugin needs restart of the Vite dev server.
50+
All scripts work from monorepo-root.
51+
The plugins are unbundled esm, a build step is not required while developing locally, but restarting local dev-servers can be needed to apply changes.
52+
53+
- `pnpm i` to install dependencies
54+
- `pnpm check` and `pnpm:test` to validate changes
55+
- `pnpm format` to format source code
56+
- `pnpm test:unit`, `pnpm test:serve` or `pnpm test:build` to run a subset of tests
57+
- `pnpm test <e2e-directory-name>` to focus a specific testsuite
58+
- `pnpm changeset` to generate a changeset
59+
- `pnpm generate:types` to generate public types from jsdoc (this is required when changing types and validated in ci)
5560

5661
## Credits
5762

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"test": "run-s -c test:unit test:build test:serve",
6+
"test": "run-s -c test:unit \"test:build {@}\" \"test:serve {@}\" --",
77
"test:unit": "vitest run",
88
"test:serve": "vitest run -c vitest.config.e2e.ts",
99
"test:build": "cross-env TEST_BUILD=1 vitest run -c vitest.config.e2e.ts",

0 commit comments

Comments
 (0)