@ballerina/syntax-tree
v1.0.5
Published
syntax-tree
Downloads
1,223
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 runnpm 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 updatepackage.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.