Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Compiled output
**/dist/
**/lib/
**/node_modules/

# Build files
**/.eslintrc.js
**/esbuild.js

# Other generated files
**/*.map
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
module.exports = {
root: true,
extends: '@eclipse-glsp',
ignorePatterns: ['**/{node_modules,lib}', '**/.eslintrc.js'],

parserOptions: {
tsconfigRootDir: __dirname,
Expand Down
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ to learn how to report vulnerabilities.

<!-- Please check, when if it applies to your change. -->

- [ ] This PR should be mentioned in the changelog
- [ ] This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)
- [ ] This PR should be mentioned in the changelog
- [ ] This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)
116 changes: 116 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: Prepare Release

on:
workflow_dispatch:
inputs:
release_type:
description: 'Release type (major, minor, patch, next, or custom)'
required: true
type: choice
options:
- major
- minor
- patch
- next
- custom
custom_version:
description: 'Custom version (required if release_type is custom)'
required: false
type: string
release_repo:
description: 'GLSP repository to release'
required: true
type: choice
options:
- glsp
- glsp-client
- glsp-theia-integration
- glsp-server
- glsp-server-node
- glsp-eclipse-integration
- glsp-vscode-integration
- glsp-playwright
branch:
description: 'Branch to use for the release repo (default: default branch)'
required: false
type: string
draft:
description: 'Create PR as draft'
required: false
type: boolean
default: false
workflow_call:
inputs:
release_type:
description: 'Release type (major, minor, patch, next, or custom)'
required: true
type: string
custom_version:
description: 'Custom version (required if release_type is custom)'
required: false
type: string
release_repo:
description: 'GLSP repository to release'
required: true
type: string
branch:
description: 'Branch to use for the release repo (default: default branch)'
required: false
type: string
draft:
description: 'Create PR as draft'
required: false
type: boolean
default: false

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout release helper repo (@eclipse-glsp/glsp)
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: eclipse-glsp/glsp
path: glsp-release-helper
ref: releng

- name: Checkout release repo (${{ inputs.release_repo || github.event.inputs.release_repo }})
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: eclipse-glsp/${{ inputs.release_repo || github.event.inputs.release_repo }}
path: release-repo
ref: ${{ inputs.branch || github.event.inputs.branch }}

- name: Set up Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 20

- name: Install Yarn
run: npm install -g yarn

- name: Install dependencies in glsp-release-helper
working-directory: ./glsp-release-helper
run: yarn install

- name: Configure Git
run: |
git config --global user.name "eclipse-glsp-bot"
git config --global user.email "[email protected]"

- name: Prepare release
id: prepare_release
working-directory: ./glsp-release-helper
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
DRAFT_FLAG=""
if [[ "${{ inputs.draft || github.event.inputs.draft }}" == "true" ]]; then
DRAFT_FLAG="-d"
fi

if [[ "${{ inputs.release_type || github.event.inputs.release_type }}" == "custom" ]]; then
yarn glsp releng prepare custom "${{ inputs.custom_version || github.event.inputs.custom_version }}" -r ${{ github.workspace }}/release-repo $DRAFT_FLAG
else
yarn glsp releng prepare "${{ inputs.release_type || github.event.inputs.release_type }}" -r ${{ github.workspace }}/release-repo $DRAFT_FLAG
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
*.log
lib
dist
tsconfig.tsbuildinfo
eslint.xml
17 changes: 17 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Dependencies
node_modules/

# Build outputs
lib/
dist/

# Generated files
*.min.js
*.min.css

# Lock files
package-lock.json
yarn.lock

# Logs
*.log
24 changes: 24 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug GLSP CLI",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/dev-packages/cli/dist/cli.js",
"args": "${input:cliArgs}",
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/dev-packages/cli/dist/*.js"]
}
],
"inputs": [
{
"id": "cliArgs",
"description": "CLI arguments (space-separated, e.g., 'checkHeaders ./')",
"default": "",
"type": "promptString"
}
]
}
1 change: 1 addition & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Version 1.2
August 19, 2020

## Our Pledge

<img align="right" src="https://www.eclipse.org/org/images/eclipse_code_of_conduct.png" width="246" style="padding: 0px 5px 0px 5px;">
In the interest of fostering an open and welcoming environment, we as community members, contributors, committers, and project leaders pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

Expand Down
1 change: 1 addition & 0 deletions dev-packages/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Eclipse GLSP - Dev Packages [![build-status](https://img.shields.io/jenkins/build?jobUrl=https://ci.eclipse.org/glsp/job/eclipse-glsp/job/glsp/job/master)](https://ci.eclipse.org/glsp/job/eclipse-glsp/job/glsp-client/job/master)

Common shared development packages for Eclipse GLSP components that are implemented with Typescript.

## Components
Expand Down
Loading
Loading