@ballerina/syntax-tree

syntax-tree

Usage no npm install needed!

<script type="module">
  import ballerinaSyntaxTree from 'https://cdn.skypack.dev/@ballerina/syntax-tree';
</script>

README

@ballerina/syntax-tree

Getting Started

Developer Guide

Avoid working directly on wso2-enterprise/ballerina-low-code-editor, fork this repositoty to your account first.

git clone https://github.com/<your-username>/ballerina-low-code-editor.git
cd ballerina-low-code-editor/syntax-tree
npm install

For local development

You need to run npm link inside syntax-tree/ directory to test syntax-tree library with choreo-console and low-code-editor in local environment.

cd wso2-enterprise/ballerina-low-code-editor
npm link
npm run watch
cd <project-directory>
npm link @ballerina/syntax-tree

You can use npm unlink command inside the same directory to force switch back to remote referance of the package. You might want to run npm install on parent repository also.

Currently you can't test syntaxt-tree locally without support of choreo-console.

Publishing guide for syntax-tree

  • Contact @ballerina npm orgnization admin to get publishing rights if you don't have access yet.
  • Open your terminal and change to syntax-tree directory. (cd /syntaxt-tree/)
  • Login to your npm account using npm login
  • Run npm version <major|minor|patch> to state package version you want to publish. It'll update package.json.
  • Run npm publish --tag latest to publish your package.
  • Create a separate branch syntaxt-tree/vx.x.x with latest changes, and send a PR against master.