Eclipse GLSP - CLI
The @eclipse-glsp/cli
package provides helpful scripts and commands for extension and application development.
The contributed glsp
, is a command line tool that offers all contributed commands.
Getting Started
Install @eclipse-glsp/cli
as a dev dependency in your application.
yarn add @eclipse-glsp/cli --dev
coverageReport
The coverageReport
command can be used to create a full nyc test coverage report for a lerna/yarn mono repository.
Individual coverage reports for each package are created and then combined to a full report.
$ glsp coverageReport -h
Usage: glsp coverageReport [options]
Generate a test coverage report for a glsp component
Options:
-p, --projectRoot <projectRoot> The root directory of the GLSP component (default: "<cwd>")
-c, --coverageScript <script> Script command of the package root for creating coverage reports (default: "test:coverage")
-h, --help display help for command
release
Eclipse GLSP committers can use the release
command to prepare & publish a new Github release for a specific GLSP component.
$ glsp release -h
Usage: glsp release [options] <component> <releaseType> [customVersion]
Prepare & publish a new release for a glsp component
Arguments:
component The glsp component to be released (choices: "client", "theia-integration", "vscode-integration", "eclipse-integration", "server-node", "server-java")
releaseType The release type (choices: "major", "minor", "patch", "rc", "custom")
customVersion Custom version number. Will be ignored if the release type is not "custom"
Options:
-f, --force Enable force mode (default: false)
-d, --checkoutDir <checkoutDir> The git checkout directory (default: "<cwd>")
-b, --branch <branch> The git branch to checkout (default: "master")
-v, --verbose Enable verbose (debug) log output (default: false)
--no-publish Only prepare release but do not publish to github
--draft Publish github releases as drafts (default: false)
--npm-dryRun Execute a npm dry-run for inspection. Publishes to the local npm registry and does not publish to github (default: false)
-h, --help display help for command
More information
For more information, please visit the Eclipse GLSP Umbrella repository and the Eclipse GLSP Website.
If you have questions, please raise them in the discussions and have a look at our communication and support options.