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

HTTP Server to manage klips for browser runtime #21

Closed
mpetuska opened this issue Dec 29, 2021 · 0 comments · Fixed by #42
Closed

HTTP Server to manage klips for browser runtime #21

mpetuska opened this issue Dec 29, 2021 · 0 comments · Fixed by #42
Labels
enhancement New feature or request

Comments

@mpetuska
Copy link
Owner

mpetuska commented Dec 29, 2021

Since js tests running on the browser runtime do not have access to fs module, an alternative way to write to files is required.

This can be solved by implementing a simple HTTP server managed by gradle and tied to jsBrowserTest tasks lifecycle, that would manage klip files via fetch API.

This should be toggled by a new flag injected by the compiler (defaults to true only for js sourceSets). Alternatively, this could be detected implicitly in klip-core and only enable itself if browser runtime is detected.

@mpetuska mpetuska added the enhancement New feature or request label Dec 29, 2021
@mpetuska mpetuska mentioned this issue Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant