Skip to content

Prepare TS WASM Bindings From Existing Playground #37

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

Merged
merged 1 commit into from
May 28, 2025

Conversation

jbolda
Copy link
Contributor

@jbolda jbolda commented May 28, 2025

Motivation

We are establishing the TS bindings within this repo. The playground already has existing work to wasm-pack into a parser available for use in the browser and JS targets which we can build upon.

Changes

  • Moved the WASM setup from the playground into a separate typescript folder
  • Wired up the new typescript folder to properly build and allow continued deployment of the playground
  • Added a watch script to rerun wasm-pack on changes to the Rust based parser

@jbolda jbolda requested review from dubadub and Zheoni May 28, 2025 03:59
{
"name": "@cooklang/cooklang-ts",
"version": "0.0.0",
"private": "true",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentionally left this private until we are ready to move forward with this setup.

@dubadub
Copy link
Member

dubadub commented May 28, 2025

Looks great, thank you!

@Zheoni
Copy link
Contributor

Zheoni commented May 28, 2025

new structure looks good, although merging into main means that the playground will stop working in the main branch?

If we merge knowing that I think it's fine. The other option is to have a separate branch for the ts bindings until they are in a working state.

@jbolda
Copy link
Contributor Author

jbolda commented May 28, 2025

although merging into main means that the playground will stop working in the main branch?

This should work in local and deployed unless there is something that I am missing.

@Zheoni Zheoni merged commit ad78afa into main May 28, 2025
3 checks passed
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.

3 participants