File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,22 @@ Join the [Svelte Discord server](https://svelte.dev/chat)!
47
47
48
48
## Development
49
49
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 playwright install chromium ` to install required playwright browser binaries via local playwright-core
55
+
56
+ > ** NOTE**
57
+ > This repo uses ` playwright-core ` with a bin alias to ` playwright ` via package.json script
58
+ > Calling ` pnpm dlx playwright install chromium ` will not work.
59
+
60
+ - ` pnpm check ` and ` pnpm:test ` to validate changes
61
+ - ` pnpm format ` to format source code
62
+ - ` pnpm test:unit ` , ` pnpm test:serve ` or ` pnpm test:build ` to run a subset of tests
63
+ - ` pnpm test <e2e-directory-name> ` to focus a specific testsuite
64
+ - ` pnpm changeset ` to generate a changeset
65
+ - ` pnpm generate:types ` to generate public types from jsdoc (this is required when changing types and validated in ci)
55
66
56
67
## Credits
57
68
Original file line number Diff line number Diff line change 3
3
"private" : true ,
4
4
"type" : " module" ,
5
5
"scripts" : {
6
- "test" : " run-s -c test:unit test:build test:serve" ,
6
+ "test" : " run-s -c test:unit \" test:build {@} \" \" test:serve {@} \" -- " ,
7
7
"test:unit" : " vitest run" ,
8
8
"test:serve" : " vitest run -c vitest.config.e2e.ts" ,
9
9
"test:build" : " cross-env TEST_BUILD=1 vitest run -c vitest.config.e2e.ts" ,
You can’t perform that action at this time.
0 commit comments