Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more work on vanilla repl: repl web component + package + MicroRepl #866

Merged
merged 35 commits into from Dec 25, 2023

Conversation

felixroos
Copy link
Collaborator

@felixroos felixroos commented Dec 15, 2023

follow up for #865 including:

new repl package with strudel-editor web component

There is now a new package @strudel/repl that can be used to easily get a repl running in any html file:

<script src="https://unpkg.com/@strudel/repl@0.9.4"></script>
<strudel-editor>
  <!--
s("bd(3,8)")
-->
</strudel-editor>

The fixed version number will make sure the pattern continues to work. Instead of a fixed version number, latest will give the latest version..

MicroRepl

This is the new version of MiniRepl, using just a thin react wrapper around StrudelMirror to be usable in the docs.
It can be tested in /recipes/recipes-next which replaces all usages of MiniRepl with MicroRepl.

@felixroos felixroos changed the title Vanilla repl 4 more work on vanilla repl: repl web component + package Dec 25, 2023
@felixroos felixroos marked this pull request as ready for review December 25, 2023 14:48
@felixroos
Copy link
Collaborator Author

i think I'll merge this first and then start refactoring the docs, replacing MiniRepl with MicroRepl. The refactoring of the main repl should probably come last

@felixroos felixroos changed the title more work on vanilla repl: repl web component + package more work on vanilla repl: repl web component + package + MicroRepl Dec 25, 2023
@felixroos felixroos merged commit 8b4be4d into main Dec 25, 2023
2 checks passed
@felixroos felixroos deleted the vanilla-repl-2 branch December 25, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant