Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

chore: add run:browser task #197

Merged
merged 2 commits into from
Aug 31, 2022
Merged

chore: add run:browser task #197

merged 2 commits into from
Aug 31, 2022

Conversation

tjjfvi
Copy link
Contributor

@tjjfvi tjjfvi commented Aug 31, 2022

Allows testing the various examples in the browser via e.g.

deno task run:browser examples/transfer.ts

The task file is a bit hacked together, but as it's an internal util, I think this is fine.

@tjjfvi tjjfvi marked this pull request as ready for review August 31, 2022 13:29
@tjjfvi tjjfvi requested a review from harrysolovay as a code owner August 31, 2022 13:29
@tjjfvi tjjfvi changed the title add run:browser task chore: add run:browser task Aug 31, 2022
@tjjfvi
Copy link
Contributor Author

tjjfvi commented Aug 31, 2022

To clarify:

Users who want to use capi from the browser will not use anything like run_browser – they will likely use the DNT-produced package along with a bundler of their choice.

The run_browser script is solely for internal testing, so that we can run the Deno example scripts in the browser without having to go through DNT and a bundler.

@tjjfvi tjjfvi merged commit c1afe80 into main Aug 31, 2022
@tjjfvi tjjfvi deleted the test_browser branch August 31, 2022 14:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants