From d03fc43f031f11708b387c99ea3289d4e1d2f929 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Thu, 30 Jan 2025 21:03:05 +0100 Subject: [PATCH] docs: add info on how to test repl package --- packages/repl/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/repl/README.md b/packages/repl/README.md index b82f3434..46819712 100644 --- a/packages/repl/README.md +++ b/packages/repl/README.md @@ -94,3 +94,15 @@ or The `.editor` property on the `strudel-editor` web component gives you the instance of [StrudelMirror](https://github.com/tidalcycles/strudel/blob/a46bd9b36ea7d31c9f1d3fca484297c7da86893f/packages/codemirror/codemirror.mjs#L124) that runs the REPL. For example, you could use `setCode` to change the code from the outside, `start` / `stop` to toggle playback or `evaluate` to evaluate the code. + +## Development: How to Test + +```sh +cd packages/repl +pnpm build +cd ../.. # back to root folder +# edit ./examples/buildless/web-component-no-iframe.html +# use +pnpx serve # from root folder +# go to http://localhost:3000/examples/buildless/web-component-no-iframe +```