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

demo of this working in the browser with node? #79

Closed
NullVoxPopuli opened this issue Aug 26, 2023 · 4 comments
Closed

demo of this working in the browser with node? #79

NullVoxPopuli opened this issue Aug 26, 2023 · 4 comments

Comments

@NullVoxPopuli
Copy link

I tried qunitx a couple times, and haven't been able to get anything to work. Is there a sample repo that demonstrates this working in the browser uning node as the launching environment?

Thanks!

@izelnakri
Copy link
Owner

izelnakri commented Aug 28, 2023

This issue is qunitx-cli related. Yes it works if you use the latest node.js version with support for ---loader flag, have chromium or chrome browser with CHROME_BIN environment variable on your $PATH, also you need to have ts-node globally installed for it to dynamically resolve the global dependency/transpiler, but currently there is no statically compiled binary distribution for qunitx-cli.

I'm currently improving the test suite for qunitx-cli, then will see how to distribute it as a statically compiled binary in nixpkgs repository as this is not an easy or commonly done thing especially for TypeScript projects written in node.js yet.

Closing this issue here, let me know if you'd like it to be reopened.

@NullVoxPopuli
Copy link
Author

I've opened an issue here, as I cannot get qunitx working at all: izelnakri/qunitx-cli#7, so a demo repo would go a long way.

@NullVoxPopuli
Copy link
Author

, also you need to have ts-node globally installed for it to dynamically resolve the global dependency/transpiler,

This is likely my problem, but this is also pretty bad DX, imo -- I do not install global tools, aside from pnpm.
ts-node should be a dependency of the CLI. Otherwise, how could you guarantee that the cli works for all versions of ts-node?

@izelnakri
Copy link
Owner

last time I tried the ts-node dependency could not be reliably referenced locally even if you include it as a dependency of the package because of the way it runs now, however as I mentioned, ts-node might not be needed anymore.

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

No branches or pull requests

2 participants