0.2.3 • Published 3 years ago

@salesforce/soql-model v0.2.3

Weekly downloads
246
License
BSD-3-Clause
Repository
github
Last release
3 years ago

SOQL Tooling

Introduction

This repo contains the source for the SOQL Language Tooling features including:

packages
|-- language-server/        SOQL language server
|-- soql-builder-ui/        SOQL Query Builder UI with [LWC](https://lwc.dev/)
`-- soql-model/             SOQL internal model

Development

Run yarn from the top-level directory to pull all dependencies and auto-link local dependencies between packages (i.e: soql-builder-ui depends on soql-model).

These packages are used from VS Code extension salesforcedx-vscode-soql which lives in repo salesforcedx-vscode.

During development, you can work with a local copy of the salesforcedx-vscode repo, and configure it to use your local packages in your soql-tooling repo. Example:

# Make global links available
cd ~/repos/soql-tooling
for P in packages/*; do cd $P; yarn link; cd -; done

# Link to them from the VS Code SOQL extension package
cd ~/repos/salesforcedx-vscode/packages/salesforcedx-vscode-soql
npm install
npm link @salesforce/soql-builder-ui
npm link @salesforce/soql-language-server

With that in place, you can make changes to your soql-tooling packages, compile them, and then relaunch the whole salesforcedx-vscode extension from VSCode to see the changes.

Debug Jest Test

You can debug Jest test for an individual package by running the corresponding launch configuraiton in VS Codes RUN panel.

Publishing

Some packages depend on @salesforce/soql-parser which is included as a static dependency, since it is not yet published. Packages must be published with @salesforce/soql-tooling as a bundled dependency, since the static tarball is not available in the published packages. There are prepack and postpack scripts as well as prepublish and postpublish scripts to convert the static dependency to a bundled dependency and back again, so when these packages are published they correctly refer to the soql-tooling dependency as a bundled dependency, but can find the static dependency again at development install-time.

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago