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

solang needs to be available as an npm package #715

Open
seanyoung opened this issue Mar 27, 2022 · 2 comments
Open

solang needs to be available as an npm package #715

seanyoung opened this issue Mar 27, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@seanyoung
Copy link
Contributor

seanyoung commented Mar 27, 2022

Right now solang cannot be compiled to wasm due to #497, so for now this library should work much like tree-sitter-cli which downloads the release executable from github releases download.

This requires creating a new package.json and associated files, and some typescript. The code can mostly be stolen from tree-sitter-cli (note: check the license).

The npm library should implement a single compile() function, which executes the binary with the solang --standard-json. This requires the feature in #791 to be implemented. The output is json, which can be returned from the compile function.

The aim of this is to implement something similar to the solc compile function.

@seanyoung seanyoung added the enhancement New feature or request label Mar 27, 2022
@m7aswin
Copy link

m7aswin commented Apr 6, 2022

Hi @seanyoung , how can I install and run command solang. I have tired different method explained in doc: https://solang.readthedocs.io/en/latest/installing.html . currently running commands using ./solang-mac-intel binary

@seanyoung
Copy link
Contributor Author

Hi @seanyoung , how can I install and run command solang. I have tired different method explained in doc: https://solang.readthedocs.io/en/latest/installing.html . currently running commands using ./solang-mac-intel binary

This is not relevant to this issue. However, what problems are you having? What commands did you try and what is the output?

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

No branches or pull requests

2 participants