@eclipse-glsp/cli 2.3.0-next.164 → 2.3.0-next.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +143 -38
- package/dist/cli.js +21959 -0
- package/dist/cli.js.map +6 -0
- package/package.json +22 -29
- package/bin/glsp +0 -2
- package/lib/app.d.ts +0 -2
- package/lib/app.d.ts.map +0 -1
- package/lib/app.js +0 -35
- package/lib/app.js.map +0 -1
- package/lib/commands/check-header.d.ts +0 -21
- package/lib/commands/check-header.d.ts.map +0 -1
- package/lib/commands/check-header.js +0 -240
- package/lib/commands/check-header.js.map +0 -1
- package/lib/commands/coverage-report.d.ts +0 -29
- package/lib/commands/coverage-report.d.ts.map +0 -1
- package/lib/commands/coverage-report.js +0 -126
- package/lib/commands/coverage-report.js.map +0 -1
- package/lib/commands/generate-index.d.ts +0 -46
- package/lib/commands/generate-index.d.ts.map +0 -1
- package/lib/commands/generate-index.js +0 -172
- package/lib/commands/generate-index.js.map +0 -1
- package/lib/commands/release/common.d.ts +0 -68
- package/lib/commands/release/common.d.ts.map +0 -1
- package/lib/commands/release/common.js +0 -293
- package/lib/commands/release/common.js.map +0 -1
- package/lib/commands/release/release-client.d.ts +0 -3
- package/lib/commands/release/release-client.d.ts.map +0 -1
- package/lib/commands/release/release-client.js +0 -58
- package/lib/commands/release/release-client.js.map +0 -1
- package/lib/commands/release/release-eclipse-integration.d.ts +0 -18
- package/lib/commands/release/release-eclipse-integration.d.ts.map +0 -1
- package/lib/commands/release/release-eclipse-integration.js +0 -93
- package/lib/commands/release/release-eclipse-integration.js.map +0 -1
- package/lib/commands/release/release-java-server.d.ts +0 -3
- package/lib/commands/release/release-java-server.d.ts.map +0 -1
- package/lib/commands/release/release-java-server.js +0 -71
- package/lib/commands/release/release-java-server.js.map +0 -1
- package/lib/commands/release/release-server-node.d.ts +0 -18
- package/lib/commands/release/release-server-node.d.ts.map +0 -1
- package/lib/commands/release/release-server-node.js +0 -54
- package/lib/commands/release/release-server-node.js.map +0 -1
- package/lib/commands/release/release-theia-integration.d.ts +0 -18
- package/lib/commands/release/release-theia-integration.d.ts.map +0 -1
- package/lib/commands/release/release-theia-integration.js +0 -54
- package/lib/commands/release/release-theia-integration.js.map +0 -1
- package/lib/commands/release/release-vscode-integration.d.ts +0 -18
- package/lib/commands/release/release-vscode-integration.d.ts.map +0 -1
- package/lib/commands/release/release-vscode-integration.js +0 -54
- package/lib/commands/release/release-vscode-integration.js.map +0 -1
- package/lib/commands/release/release.d.ts +0 -14
- package/lib/commands/release/release.d.ts.map +0 -1
- package/lib/commands/release/release.js +0 -191
- package/lib/commands/release/release.js.map +0 -1
- package/lib/commands/update-next.d.ts +0 -20
- package/lib/commands/update-next.d.ts.map +0 -1
- package/lib/commands/update-next.js +0 -146
- package/lib/commands/update-next.js.map +0 -1
- package/lib/util/command-util.d.ts +0 -26
- package/lib/util/command-util.d.ts.map +0 -1
- package/lib/util/command-util.js +0 -56
- package/lib/util/command-util.js.map +0 -1
- package/lib/util/git-util.d.ts +0 -42
- package/lib/util/git-util.d.ts.map +0 -1
- package/lib/util/git-util.js +0 -125
- package/lib/util/git-util.js.map +0 -1
- package/lib/util/logger.d.ts +0 -23
- package/lib/util/logger.d.ts.map +0 -1
- package/lib/util/logger.js +0 -50
- package/lib/util/logger.js.map +0 -1
- package/lib/util/validation-util.d.ts +0 -5
- package/lib/util/validation-util.d.ts.map +0 -1
- package/lib/util/validation-util.js +0 -86
- package/lib/util/validation-util.js.map +0 -1
- package/src/app.ts +0 -34
- package/src/commands/check-header.ts +0 -280
- package/src/commands/coverage-report.ts +0 -113
- package/src/commands/generate-index.ts +0 -169
- package/src/commands/release/common.ts +0 -306
- package/src/commands/release/release-client.ts +0 -55
- package/src/commands/release/release-eclipse-integration.ts +0 -113
- package/src/commands/release/release-java-server.ts +0 -73
- package/src/commands/release/release-server-node.ts +0 -61
- package/src/commands/release/release-theia-integration.ts +0 -65
- package/src/commands/release/release-vscode-integration.ts +0 -67
- package/src/commands/release/release.ts +0 -215
- package/src/commands/update-next.ts +0 -129
- package/src/util/command-util.ts +0 -54
- package/src/util/git-util.ts +0 -123
- package/src/util/logger.ts +0 -57
- package/src/util/validation-util.ts +0 -62
package/README.md
CHANGED
|
@@ -11,6 +11,24 @@ Install `@eclipse-glsp/cli` as a dev dependency in your application.
|
|
|
11
11
|
yarn add @eclipse-glsp/cli --dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```console
|
|
17
|
+
Usage: glsp [options] [command]
|
|
18
|
+
|
|
19
|
+
Options:
|
|
20
|
+
-V, --version output the version number
|
|
21
|
+
-h, --help display help for command
|
|
22
|
+
|
|
23
|
+
Commands:
|
|
24
|
+
coverageReport [options] Generate a test coverage report for a glsp component
|
|
25
|
+
checkHeaders [options] <rootDir> Validates the copyright year range (end year) of license header files
|
|
26
|
+
updateNext|u [options] [rootDir] Updates all `next` dependencies in GLSP project to the latest version
|
|
27
|
+
generateIndex [options] <rootDir...> Generate index files in a given source directory.
|
|
28
|
+
releng Commands for GLSP release engineering (Linux only, intended for CI/Maintainer use).
|
|
29
|
+
help [command] display help for command
|
|
30
|
+
```
|
|
31
|
+
|
|
14
32
|
## checkHeaders
|
|
15
33
|
|
|
16
34
|
The `checkHeaders` command can be used to validate the copyright year (range) of license headers.
|
|
@@ -23,19 +41,21 @@ $ glsp checkHeaders -h
|
|
|
23
41
|
|
|
24
42
|
Usage: glsp checkHeaders [options] <rootDir>
|
|
25
43
|
|
|
26
|
-
Validates the copyright year range of license header files
|
|
44
|
+
Validates the copyright year range (end year) of license header files
|
|
27
45
|
|
|
28
46
|
Arguments:
|
|
29
47
|
rootDir The starting directory for the check
|
|
30
48
|
|
|
31
49
|
Options:
|
|
32
|
-
-t, --type <type> The scope of the check. In addition to a full recursive check, is also possible to only
|
|
33
|
-
"full"
|
|
50
|
+
-t, --type <type> The scope of the check. In addition to a full recursive check, is also possible to only
|
|
51
|
+
consider pending changes or the last commit (choices: "full", "changes", "lastCommit",
|
|
52
|
+
default: "full")
|
|
34
53
|
-f, --fileExtensions <extensions...> File extensions that should be checked (default: ["ts","tsx"])
|
|
35
|
-
-e, --exclude <exclude...> File patterns that should be excluded from the check. New exclude patterns are added to
|
|
36
|
-
|
|
54
|
+
-e, --exclude <exclude...> File patterns that should be excluded from the check. New exclude patterns are added to
|
|
55
|
+
the default patterns (default: [**/@(node_modules|lib|dist|bundle)/**])
|
|
56
|
+
--no-exclude-defaults Disables the default excludes patterns. Only explicitly passed exclude patterns (-e,
|
|
57
|
+
--exclude) are considered
|
|
37
58
|
-j, --json Also persist validation results as json file (default: false)
|
|
38
|
-
-s, --severity <severity> The severity of validation results that should be printed. (choices: "error", "warn", "ok", default: "error" (only))
|
|
39
59
|
-a, --autoFix Auto apply & commit fixes without prompting the user (default: false)
|
|
40
60
|
-h, --help display help for command
|
|
41
61
|
```
|
|
@@ -52,37 +72,12 @@ Usage: glsp coverageReport [options]
|
|
|
52
72
|
Generate a test coverage report for a glsp component
|
|
53
73
|
|
|
54
74
|
Options:
|
|
55
|
-
-p, --projectRoot <projectRoot> The root directory of the GLSP component (default:
|
|
75
|
+
-p, --projectRoot <projectRoot> The root directory of the GLSP component (default:
|
|
76
|
+
"<cwd>")
|
|
56
77
|
-c, --coverageScript <script> Script command of the package root for creating coverage reports (default: "test:coverage")
|
|
57
78
|
-h, --help display help for command
|
|
58
79
|
```
|
|
59
80
|
|
|
60
|
-
## release
|
|
61
|
-
|
|
62
|
-
Eclipse GLSP committers can use the `release` command to prepare & publish a new Github release for a specific GLSP component.
|
|
63
|
-
|
|
64
|
-
```console
|
|
65
|
-
$ glsp release -h
|
|
66
|
-
Usage: glsp release [options] <component> <releaseType> [customVersion]
|
|
67
|
-
|
|
68
|
-
Prepare & publish a new release for a glsp component
|
|
69
|
-
|
|
70
|
-
Arguments:
|
|
71
|
-
component The glsp component to be released (choices: "client", "theia-integration", "vscode-integration", "eclipse-integration", "server-node", "server-java")
|
|
72
|
-
releaseType The release type (choices: "major", "minor", "patch", "rc", "custom")
|
|
73
|
-
customVersion Custom version number. Will be ignored if the release type is not "custom"
|
|
74
|
-
|
|
75
|
-
Options:
|
|
76
|
-
-f, --force Enable force mode (default: false)
|
|
77
|
-
-d, --checkoutDir <checkoutDir> The git checkout directory (default: "<cwd>")
|
|
78
|
-
-b, --branch <branch> The git branch to checkout (default: "master")
|
|
79
|
-
-v, --verbose Enable verbose (debug) log output (default: false)
|
|
80
|
-
--no-publish Only prepare release but do not publish to github
|
|
81
|
-
--draft Publish github releases as drafts (default: false)
|
|
82
|
-
--npm-dryRun Execute a npm dry-run for inspection. Publishes to the local npm registry and does not publish to github (default: false)
|
|
83
|
-
-h, --help display help for command
|
|
84
|
-
```
|
|
85
|
-
|
|
86
81
|
## updateNext
|
|
87
82
|
|
|
88
83
|
```console
|
|
@@ -105,7 +100,7 @@ Use this command to create an index file of all sources for a given directory an
|
|
|
105
100
|
|
|
106
101
|
```console
|
|
107
102
|
$ glsp generateIndex -h
|
|
108
|
-
Usage: glsp generateIndex [options] <rootDir
|
|
103
|
+
Usage: glsp generateIndex [options] <rootDir...>
|
|
109
104
|
|
|
110
105
|
Generate index files in a given source directory.
|
|
111
106
|
|
|
@@ -113,17 +108,127 @@ Arguments:
|
|
|
113
108
|
rootDir The source directory for index generation.
|
|
114
109
|
|
|
115
110
|
Options:
|
|
116
|
-
-s, --singleIndex Generate a single index file in the source directory instead of indices in each
|
|
111
|
+
-s, --singleIndex Generate a single index file in the source directory instead of indices in each
|
|
112
|
+
sub-directory (default: false)
|
|
117
113
|
-f, --forceOverwrite Overwrite existing index files and remove them if there are no entries (default: false)
|
|
118
114
|
-m, --match [match patterns...] File patterns to consider during indexing (default: ["**/*.ts","**/*.tsx"])
|
|
119
|
-
-i, --ignore [ignore patterns...] File patterns to ignore during indexing (default:
|
|
120
|
-
|
|
121
|
-
--
|
|
115
|
+
-i, --ignore [ignore patterns...] File patterns to ignore during indexing (default:
|
|
116
|
+
["**/*.spec.ts","**/*.spec.tsx","**/*.d.ts"])
|
|
117
|
+
--style <importStyle> Import Style (choices: "commonjs", "esm", default: "commonjs")
|
|
118
|
+
--ignoreFile <ignoreFile> The file that is used to specify patterns that should be ignored during indexing (default:
|
|
119
|
+
".indexignore")
|
|
122
120
|
-v, --verbose Generate verbose output during generation (default: false)
|
|
123
121
|
-h, --help display help for command
|
|
124
122
|
```
|
|
125
123
|
|
|
124
|
+
## releng
|
|
125
|
+
|
|
126
|
+
Commands for GLSP release engineering.
|
|
127
|
+
These commands are intended for CI usage and direct usage by Eclipse GLSP committers.
|
|
128
|
+
They are not general-purpose commands. Subcommands might rely on tools and CLI commands that are only available in
|
|
129
|
+
Linux environments.
|
|
130
|
+
|
|
131
|
+
```console
|
|
132
|
+
$ glsp releng -h
|
|
133
|
+
Usage: glsp releng [options] [command]
|
|
134
|
+
|
|
135
|
+
Commands for GLSP release engineering (Linux only, intended for CI/Maintainer use).
|
|
136
|
+
|
|
137
|
+
Options:
|
|
138
|
+
-h, --help display help for command
|
|
139
|
+
|
|
140
|
+
Commands:
|
|
141
|
+
version [options] <versionType> [customVersion] Set the version of all packages in a GLSP repository
|
|
142
|
+
prepare [options] <versionType> [customVersion] Prepare a new release for a GLSP component (version bump, changelog, PR
|
|
143
|
+
creation ...)
|
|
144
|
+
publish [options] Publish a new release for a GLSP component (npm, maven, github ...)
|
|
145
|
+
help [command] display help for command
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### version
|
|
149
|
+
|
|
150
|
+
Command to bump the version of all packages in a GLSP repository.
|
|
151
|
+
Similar to "lerna version" this bumps the version of all workspace packages.
|
|
152
|
+
In addition, external GLSP dependencies are considered and bumped as well.
|
|
153
|
+
The glsp repository type ("glsp-client", "glsp-server-node" etc.) is auto detected from the given repository path.
|
|
154
|
+
If the command is invoked in a non-GLSP repository it will fail.
|
|
155
|
+
|
|
156
|
+
```console
|
|
157
|
+
$ glsp releng version -h
|
|
158
|
+
Usage: glsp releng version [options] <versionType> [customVersion]
|
|
159
|
+
|
|
160
|
+
Set the version of all packages in a GLSP repository
|
|
161
|
+
|
|
162
|
+
Arguments:
|
|
163
|
+
versionType The version type (choices: "major", "minor", "patch", "custom", "next")
|
|
164
|
+
customVersion Custom version number. Will be ignored if the release type is not "custom"
|
|
165
|
+
|
|
166
|
+
Options:
|
|
167
|
+
-v, --verbose Enable verbose (debug) log output (default: false)
|
|
168
|
+
-r, --repoDir <repoDir> Path to the component repository (default:
|
|
169
|
+
"<cwd>")
|
|
170
|
+
-h, --help display help for command
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### prepare
|
|
174
|
+
|
|
175
|
+
Prepares a new release for a GLSP repository.
|
|
176
|
+
This includes bumping the version, updating the changelog, commit & push the changes
|
|
177
|
+
and opening a PR for the release.
|
|
178
|
+
|
|
179
|
+
The glsp repository type ("glsp-client", "glsp-server-node" etc.) is auto detected from the given repository path.
|
|
180
|
+
If the command is invoked in a non-GLSP repository it will fail.
|
|
181
|
+
|
|
182
|
+
```console
|
|
183
|
+
$ glsp releng prepare -h
|
|
184
|
+
Usage: glsp releng prepare [options] <versionType> [customVersion]
|
|
185
|
+
|
|
186
|
+
Prepare a new release for a GLSP component (version bump, changelog, PR creation ...)
|
|
187
|
+
|
|
188
|
+
Arguments:
|
|
189
|
+
versionType The version type (choices: "major", "minor", "patch", "custom", "next")
|
|
190
|
+
customVersion Custom version number. Will be ignored if the release type is not "custom"
|
|
191
|
+
|
|
192
|
+
Options:
|
|
193
|
+
-v, --verbose Enable verbose (debug) log output (default: false)
|
|
194
|
+
-r, --repoDir <repoDir> Path to the component repository (default:
|
|
195
|
+
"<cwd>")
|
|
196
|
+
--no-push Do not push changes to remote git repository
|
|
197
|
+
-d, --draft Create a draft pull request (only if push is enabled) (default: false)
|
|
198
|
+
--no-check Skip initial checks for existing dependency versions
|
|
199
|
+
-h, --help display help for command
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### publish
|
|
203
|
+
|
|
204
|
+
Helper command for publishing a new GLSP release.
|
|
205
|
+
This command should be used on the main branch of GLSP repo after a (previously prepared) Release PR has been merged.
|
|
206
|
+
Creates & publishes an new tag and Github release.
|
|
207
|
+
In addition, for all non-Java repositories the release version will be published to npm.
|
|
208
|
+
|
|
209
|
+
The glsp repository type ("glsp-client", "glsp-server-node" etc.) is auto detected from the given repository path.
|
|
210
|
+
If the command is invoked in a non-GLSP repository it will fail.
|
|
211
|
+
|
|
212
|
+
```console
|
|
213
|
+
$ glsp releng publish -h\
|
|
214
|
+
Usage: glsp releng publish [options]
|
|
215
|
+
|
|
216
|
+
Publish a new release for a GLSP component (npm, maven, github ...)
|
|
217
|
+
|
|
218
|
+
Options:
|
|
219
|
+
-v, --verbose Enable verbose (debug) log output (default: false)
|
|
220
|
+
-r, --repoDir <repoDir> Path to the component repository (default:
|
|
221
|
+
"<cwd>")
|
|
222
|
+
--no-npm Skip npm publishing
|
|
223
|
+
-d, --draft Create a draft GitHub release (default: false)
|
|
224
|
+
-h, --help display help for command
|
|
225
|
+
```
|
|
226
|
+
|
|
126
227
|
## More information
|
|
127
228
|
|
|
128
229
|
For more information, please visit the [Eclipse GLSP Umbrella repository](https://github.com/eclipse-glsp/glsp) and the [Eclipse GLSP Website](https://www.eclipse.org/glsp/).
|
|
129
230
|
If you have questions, please raise them in the [discussions](https://github.com/eclipse-glsp/glsp/discussions) and have a look at our [communication and support options](https://www.eclipse.org/glsp/contact/).
|
|
231
|
+
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
```
|