Skip to content

Commit

Permalink
v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
spoenemann committed Mar 17, 2022
1 parent 72c75da commit af817d4
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 43 deletions.
40 changes: 40 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,43 @@ With the above configuration you can attach the debugger to the language server
```javascript
const debugOptions = { execArgv: ['--nolazy', '--inspect-brk=6009'] };
```

## Release Process

Currently the process of releasing a new version of Langium is done manually one package after another. It requires to carefully update versions and dependencies. Proposals for automation of parts of this process are welcome.

1. Prepare the workspace
* Pull the latest changes
* `npm install`
* `npm test`
2. `packages/langium`
* Update version in `package.json`
* `npm run publish:latest`
3. `packages/langium-cli`
* Update version in `package.json`
* Update dependency to `langium` with `~` as version prefix (include bugfix versions)
* `npm run publish:latest`
4. `packages/langium-sprotty`
* Update version in `package.json`
* Update dependency to `langium` with `~` as version prefix
* `npm run publish:latest`
5. `packages/generator-langium`
* Update version in `package.json`
* Update dependency to `langium` and dev-dependency to `langium-cli` in `langium-template/package.json` with `^` as version prefix (include minor and bugfix versions)
* `npm run publish:latest`
6. `packages/langium-vscode`
* Update version in `package.json`
* Update dependency to `langium`
* `npm install -g vsce`
* `vsce publish -p <token> --yarn` (the last argument is due to an npm bug)
* `npm i -g ovsx`
* `ovsx publish -p <token> --yarn`
7. `examples/*`
* Update dependency to `langium` and dev-dependency to `langium-cli`
8. `npm install` again in the repository root to update `package-lock.json`
9. Commit, tag and push your changes
10. Close the corresponding GitHub milestone

In order to publish `next` versions from the current state of the `main` branch, use `npm run publish:next`, and don't update the `version` numbers manually as this is done by the npm script.
The changes must not be committed to the repository after publishing a `next` version.
Usually we don't publish `next` versions for the VS Code extension, only for the npm packages.
6 changes: 3 additions & 3 deletions examples/arithmetics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "arithmetics",
"displayName": "arithmetics",
"description": "description",
"version": "0.0.1",
"version": "0.0.0",
"engines": {
"vscode": "^1.56.0"
},
Expand Down Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"colors": "^1.4.0",
"commander": "^8.0.0",
"langium": "0.2.0",
"langium": "0.3.0",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0"
},
Expand All @@ -56,7 +56,7 @@
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"eslint-plugin-header": "^3.1.1",
"langium-cli": "0.2.0",
"langium-cli": "0.3.0",
"typescript": "^4.1.3"
}
}
6 changes: 3 additions & 3 deletions examples/domainmodel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "domainmodel",
"displayName": "domainmodel",
"description": "description",
"version": "0.0.1",
"version": "0.0.0",
"private": true,
"engines": {
"vscode": "^1.56.0"
Expand Down Expand Up @@ -46,7 +46,7 @@
"dependencies": {
"colors": "^1.4.0",
"commander": "^8.0.0",
"langium": "0.2.0",
"langium": "0.3.0",
"lodash": "^4.17.21",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0"
Expand All @@ -58,7 +58,7 @@
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"eslint-plugin-header": "^3.1.1",
"langium-cli": "0.2.0",
"langium-cli": "0.3.0",
"typescript": "^4.1.3",
"@types/jest": "^26.0.20",
"jest": "^26.6.3"
Expand Down
4 changes: 2 additions & 2 deletions examples/statemachine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"colors": "^1.4.0",
"commander": "^8.0.0",
"langium": "0.2.0",
"langium": "0.3.0",
"lodash": "^4.17.21",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0"
Expand All @@ -57,7 +57,7 @@
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"eslint-plugin-header": "^3.1.1",
"langium-cli": "0.2.0",
"langium-cli": "0.3.0",
"typescript": "^4.1.3"
}
}
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/generator-langium/langium-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"chevrotain": "^9.1.0",
"colors": "^1.4.0",
"commander": "^8.0.0",
"langium": "^0.2.0",
"langium": "^0.3.0",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0",
"vscode-uri": "^3.0.2"
Expand All @@ -57,7 +57,7 @@
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"langium-cli": "^0.2.0",
"langium-cli": "^0.3.0",
"typescript": "^4.1.3"
}
}
2 changes: 1 addition & 1 deletion packages/generator-langium/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-langium",
"version": "0.2.1",
"version": "0.3.0",
"description": "Yeoman generator for Langium - the language engineering tool",
"homepage": "https://langium.org",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/langium-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langium-cli",
"version": "0.2.0",
"version": "0.3.0",
"description": "CLI for Langium - the language engineering tool",
"homepage": "https://langium.org",
"engines": {
Expand Down Expand Up @@ -38,7 +38,7 @@
"commander": "^7.2.0",
"fs-extra": "^9.1.0",
"jsonschema": "^1.4.0",
"langium": "~0.2.0",
"langium": "~0.3.0",
"lodash": "^4.17.21"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/langium-sprotty/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langium-sprotty",
"version": "0.2.0",
"version": "0.3.0",
"description": "Use Langium as source for Sprotty diagram models",
"homepage": "https://langium.org",
"keywords": [
Expand Down Expand Up @@ -29,7 +29,7 @@
"publish:latest": "npm publish --tag latest"
},
"dependencies": {
"langium": "0.2.0",
"langium": "~0.3.0",
"sprotty-protocol": "^0.11.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/langium-vscode/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "langium-vscode",
"publisher": "langium",
"version": "0.2.0",
"version": "0.3.0",
"displayName": "Langium",
"description": "Support for the Langium Grammar Language",
"homepage": "https://langium.org",
Expand Down Expand Up @@ -53,7 +53,7 @@
"lint": "eslint src --ext ts"
},
"dependencies": {
"langium": "0.2.0",
"langium": "0.3.0",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/langium/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langium",
"version": "0.2.0",
"version": "0.3.0",
"description": "A language engineering tool for the Language Server Protocol",
"homepage": "https://langium.org",
"engines": {
Expand Down

0 comments on commit af817d4

Please sign in to comment.