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

Initial refactor in preparing for WASM #174

Merged
merged 13 commits into from
Dec 10, 2024

Conversation

jhugman
Copy link
Owner

@jhugman jhugman commented Dec 4, 2024

This PR does a small number of things, which makes it O(n * m).

Principally, it is to make room for the WASM bindings generator, with a --flavor ABI Flavor to switch between them.

This necessitated quite a large refactor. Most of this is mechanical; a lot of changes are files moving and use statements being updated.

The upshot of this PR is that we now have a --flavor wasm flag in the xtask run, which runs the typescript tests using tsx/nodejs.

The ReactNative bindings generator calls into a newly refactored get_typescript module which accepts a flavor.

Anticipating that this is not the last time we'll add a switch like flavor, this is contained in a SwitchesArg struct.

@jhugman jhugman force-pushed the jhugman/wasm/typescript-template-variations branch from bce7ac4 to 87d3094 Compare December 4, 2024 15:54
@jhugman jhugman requested a review from zzorba December 4, 2024 15:56
@jhugman jhugman force-pushed the jhugman/wasm/typescript-template-variations branch from 31e96a3 to 2e63119 Compare December 4, 2024 17:01
Copy link
Collaborator

@zzorba zzorba left a comment

Choose a reason for hiding this comment

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

LGTM, ran it locally without issue.

@jhugman jhugman force-pushed the jhugman/wasm/typescript-template-variations branch from 2e63119 to b6d8abe Compare December 9, 2024 15:59
@jhugman jhugman force-pushed the jhugman/wasm/typescript-template-variations branch from b6d8abe to b5c91d6 Compare December 10, 2024 01:43
@jhugman jhugman merged commit 0cd7080 into main Dec 10, 2024
18 checks passed
@jhugman jhugman deleted the jhugman/wasm/typescript-template-variations branch December 10, 2024 13:44
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.

2 participants