question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What's the command line equivalent of compiling in VS Code?

See original GitHub issue

I’ve tried the following but that doesn’t give me the json files in the /bin/contracts folder solc --bin --abi --optimize -o ./bin/contracts --overwrite ./contracts/*.sol

I tried adding the --standard-json option but it just hangs solc

My motivation is to have something like the following in my package.json file so developers who are not using VS Code can still compile my project.

"scripts": {
    "buildSol": "solc --bin --abi --optimize -o ./bin/contracts --overwrite ./contracts/*.sol",
    "buildJS": "tsc",
    "test": "jest"
  },

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
juanfranblancocommented, Jun 4, 2021

Yes I thought that myself, good call.

1reaction
cameelcommented, Jun 4, 2021

You mean #solc-tooling? Pinging @franzihei.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Line Interface (CLI) - Visual Studio Code
Visual Studio Code has a powerful command-line interface built-in that lets you control how you launch the editor. You can open files, install...
Read more >
Walkthrough: Compile a C program on the command line
The Build Tools for Visual Studio version of Visual Studio installs only the command-line toolset, the compilers, tools, and libraries you ...
Read more >
How do I set up Visual Studio Code to compile C++ code?
Open your C++ code file in Text Editor, then use shortcut Ctrl+Alt+N , or press F1 and then select/type Run Code , or...
Read more >
Build and Run a Sample Project Using Visual Studio Code
Prepare Build Tasks from Make / CMake Files · Press. Ctrl+Shift+P or. View -> Command Palette… · Type. Intel oneAPI. and select. Intel...
Read more >
How to run a C program in Visual Studio Code
A MinGW is an advanced GCC compiler software used to compile and execute code. It is software that supports only the window operating...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found