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

Create a componentize-js CLI experience #102

Open
rylev opened this issue Apr 10, 2024 · 3 comments
Open

Create a componentize-js CLI experience #102

rylev opened this issue Apr 10, 2024 · 3 comments

Comments

@rylev
Copy link

rylev commented Apr 10, 2024

Instead of requiring componentize-js to be used as a library, it would be nice if there was also a CLI experience. To begin with the CLI could take two mandatory arguments (the path to the wit package and the path to write the encoded component) and one optional argument (the world to be selected).

@guybedford
Copy link
Collaborator

jco componentize is designed to be the CLI here - https://github.com/bytecodealliance/jco?tab=readme-ov-file#componentize. For now that is the place to discuss this, although we could split out a ComponentizeJS-specific CLI in future.

@rylev
Copy link
Author

rylev commented Apr 11, 2024

That seems fine. Though it did seem more intuitive to me for ComponentizeJS to also have a CLI and be (at least spiritually) the main tool for componentizing JavaScript. I think however this stems from my misunderstanding of what jco is. I wasn't aware that jco was branded as a full toolchain and instead mistakenly thought of it as the runtime support for components in node.

At the very least, would it make sense to point to jco in the README here as the main dev experience for components and JavaScript? Something akin to "use this library if you really need a library for componentizing JavaScript, otherwise you might find more of what you need in the jco project".

@guybedford
Copy link
Collaborator

I've included a note about jco componentize in 519256f.

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