Build a Function

To build a function:

Using the VS Code explorer view

  1. Open VS Code.

  2. Click the EDJX Extension.

  3. In the Profile panel, click Connect to EDJX.

    If you are already logged in, proceed to the next step.
  4. In the VS Code explorer, navigate to the folder where the function resides.

  5. Right-click the edjconfig.yaml file within your function folder and then click Build Function.

    vscode function build

    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

  1. Open the file in the code viewer.

  2. Click Build at the top of the code.

    vscode function build inline

    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

  1. Open VS Code.

  2. Click View > Command Palette…​.

  3. Enter EDJX: Connect to EDJX.
    A prompt displays.

  4. Enter your username and password.

  5. Click View > Command Palette…​.

  6. Enter EDJX: Build Function.

  7. 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.