4.8.0 • Published 2 months ago

@salesforce/lightning-lsp-common v4.8.0

Weekly downloads
475
License
BSD-3-Clause
Repository
github
Last release
2 months ago

CircleCI codecov License npm (scoped) npm (scoped) npm (scoped)

Lightning Language Servers

Mono repo for the LWC and Aura Language Services that are used in the Salesforce Extensions for VS Code.

Issues & Features

Open issues and feature requests on the Salesforce VSCode Extensions Repository.

Setup Development Environment

Pre-requisites

Follow the pre-requisites here: https://github.com/forcedotcom/salesforcedx-vscode/blob/develop/CONTRIBUTING.md

Clone this repository and Salesforce VSCode Extensions

git clone git@github.com:forcedotcom/lightning-language-server.git
git clone git@github.com:forcedotcom/salesforcedx-vscode.git

Note: These projects need to be cloned into the same parent directory

Setup lightning-language-server repository

cd lightning-language-server
yarn install
yarn link-lsp

Setup Salesforce VSCode Extensions repository

cd ../salesforcedx-vscode
npm install
npm run link-lsp
npm run compile

Open both repositories in a vscode workspace

code ./vscode-workspaces/multiroot-simple.code-workspace

Debugging with VSCode

Run 'Launch DX - Aura & LWC' from the VSCode debug view (its the last one in that long list).

Recompile on change

cd ../lightning-language-server
yarn watch
cd ../salesforcedx-vscode
npm run watch

Note: You need to restart vscode each time you make changes to the language server or the lightning vscode extensions. Easiest way to do this is to kill the vscode client and hit F5 to relaunch your debugger.

Publishing

Automated publish to NPM

Automated deploys to NPM will occur weekly on Sundays @midnight via CircleCI. https://circleci.com/gh/forcedotcom/lightning-language-server/tree/master

On-Demand publish to NPM

If you want to have CircleCI publish the current master branch to NPM, you can run the following script to trigger the deploy job to run:

curl -v -u ${CircleCIToken}: -X POST --header "Content-Type: application/json" -d '{
  "branch": "master",
  "parameters": {
    "deploy": true,
    "version": "patch"
  }
}' https://circleci.com/api/v2/project/gh/forcedotcom/lightning-language-server/pipeline

You can also modify the version parameter in the curl script to configure how the version is bumped. Valid values are: major | minor | patch | premajor | preminor | prepatch | prerelease. By default the weekly builds only bump the patch version.

Note: You need to substitute in your own ${CircleCIToken} to make this script work. You can create a Personal API Token by following the instructions here: https://circleci.com/docs/2.0/managing-api-tokens/#creating-a-personal-api-token

Manual publish to NPM (from your local machine)

yarn bump-versions
yarn publish-lsp

Note: you will have to be authenticated to an account that has access to the @salesforce org on NPM

4.8.0

2 months ago

4.7.4

3 months ago

4.7.2

6 months ago

4.7.1

7 months ago

4.7.3

5 months ago

4.7.0

10 months ago

4.6.1

12 months ago

4.4.1

1 year ago

4.4.0

1 year ago

4.6.0

1 year ago

4.4.2

1 year ago

4.5.0

1 year ago

4.3.0

1 year ago

4.2.0

1 year ago

4.0.2

1 year ago

3.11.0

2 years ago

4.1.0

1 year ago

3.10.0

2 years ago

3.9.0

2 years ago

3.8.0

2 years ago

3.6.0

2 years ago

3.7.0

2 years ago

3.4.0

2 years ago

3.3.0

2 years ago

3.2.0

2 years ago

3.5.0

2 years ago

3.1.0

3 years ago

3.0.16

3 years ago

3.0.15

3 years ago

3.0.14

3 years ago

3.0.13

3 years ago

3.0.12

3 years ago

3.0.11

4 years ago

3.0.10

4 years ago

3.0.9

4 years ago

3.0.8

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

2.3.20

4 years ago

2.3.19

4 years ago

2.3.18

4 years ago

2.3.17

4 years ago

2.3.16

4 years ago

2.3.15

4 years ago

2.3.14

4 years ago

2.3.13

4 years ago

2.3.12

4 years ago

2.3.11

4 years ago

2.3.10

4 years ago

2.3.9

4 years ago

2.3.8

4 years ago

2.3.7

4 years ago

2.3.6

4 years ago

2.3.5

4 years ago

2.3.4

4 years ago

2.3.3

4 years ago

2.3.2

4 years ago

2.3.0

4 years ago

2.2.17

4 years ago

2.3.1

4 years ago

2.2.16

4 years ago

2.2.15

4 years ago

2.2.9

4 years ago

2.2.8

4 years ago