W3BStream Vscode Extension
Fast compile your project to w3bstream
Features
- w3bstream template market
- compile go lang to wasm, auto install go.mod and go.sum
- compile typescript to wasm, auto install asc
- compile rust to wasm
- support sync
output folder in wsconfig.json to w3bstream studio
wsconfig.json
each project need a wsconfig.json file in root folder
{
"language": {
"lang": "go"
},
"compile:options": {
"input": "./src",
"output": "./.w3bstream",
"extraCompileOptions": "-scheduler=none -target=wasi -no-debug"
}
}
lang is the language of your project, support typescript and go
input is the input folder of your project
excludeInput is the exclude input files of your project
output is the output folder of your project
extraCompileOptions is the extra compile options of your project
Requried
Go
We use tinygo to compile go ,you need to download tinygo first. https://tinygo.org/ ,We will support more languages in future releases
Typescript
We use AssemblyScript to compile typescript ,you need to download Node.js first.We will support more languages in future releases
Starting with the official demo
First, you need to download template from this extension home page.

You will see the wsconfig.json file in the template project
This ini file is the configuration file for the project, you can configure the project name, the output folder, the entry file, and the language of the project.

Then you need to click the compile button, and the plug-in will automatically compile the language you set according to the configuration file


Starting with your own project
If you don't have a profile in your project then you can click the Initialize Project button and it will automatically generate an ini file

Sync output folder to w3bstream studio
If you want to sync the output folder to w3bstream studio, you need to set the output folder in the wsconfig.json file

Then you can open the w3bstream studio and watch the file sync.

Key bindings
Commands

Issues
Submit the issues if you find any bug or have any suggestion.
Contribution
Fork the repo and submit pull requests.