1.0.5 • Published 4 years ago
@ballerina/syntax-tree v1.0.5
@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 installFor 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 watchcd <project-directory>
npm link @ballerina/syntax-treeYou can use
npm unlinkcommand inside the same directory to force switch back to remote referance of the package. You might want to runnpm installon parent repository also.
Currently you can't test syntaxt-tree locally without support of choreo-console.
Publishing guide for syntax-tree
- Contact
@ballerinanpm orgnization admin to get publishing rights if you don't have access yet. - Open your terminal and change to
syntax-treedirectory. (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 latestto publish your package. - Create a separate branch
syntaxt-tree/vx.x.xwith latest changes, and send a PR against master.