Build a Function
To build a function:
Using the VS Code explorer view
-
Open VS Code.
-
Click the EDJX Extension.
-
In the Profile panel, click Connect to EDJX.
If you are already logged in, proceed to the next step. -
In the VS Code explorer, navigate to the folder where the function resides.
-
Right-click the
edjconfig.yaml
file within your function folder and then click Build Function.VS Code initiates a terminal instance to build the function.
A .wasm
file is generated that contains the compiled function. Use this.wasm
file to deploy a function.
Using the Code Viewer
-
Open the file in the code viewer.
-
Click Build at the top of the code.
VS Code initiates a terminal instance to build the function.
A .wasm
file is generated that contains the compiled function. Use this.wasm
file to deploy a function.
Using the Command Palette
-
Open VS Code.
-
Click View > Command Palette….
-
Enter EDJX: Connect to EDJX.
A prompt displays. -
Enter your username and password.
-
Click View > Command Palette….
-
Enter EDJX: Build Function.
-
Navigate to the folder where the function resides.
VS Code initiates a terminal instance to build the function.
A .wasm
file is generated that contains the compiled function. Use this.wasm
file to deploy a function.