Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: remove meta-lsp #903

Merged
merged 5 commits into from
Nov 16, 2024
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
12 changes: 0 additions & 12 deletions .ghjk/lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -985,11 +985,6 @@
"desc": "Print $METATYPE_VERSION",
"envKey": "bciqkxvhlk6wifuxken6emvhj2cki7tw5ygccar6qq4vbartg776akqa"
},
"test-lsp": {
"ty": "denoFile@v1",
"key": "test-lsp",
"envKey": "bciqcqqs4e5l7nqt57e4bku3gjdxs2iruhfdl2ocayrkkcs4otx7ig7a"
},
"test-rust": {
"ty": "denoFile@v1",
"key": "test-rust",
Expand Down Expand Up @@ -1029,11 +1024,6 @@
"key": "install-wasi-adapter",
"envKey": "bciqkxvhlk6wifuxken6emvhj2cki7tw5ygccar6qq4vbartg776akqa"
},
"install-lsp": {
"ty": "denoFile@v1",
"key": "install-lsp",
"envKey": "bciqcqqs4e5l7nqt57e4bku3gjdxs2iruhfdl2ocayrkkcs4otx7ig7a"
},
"install-website": {
"ty": "denoFile@v1",
"key": "install-website",
Expand Down Expand Up @@ -1196,15 +1186,13 @@
"clean-rust",
"version-bump",
"version-print",
"test-lsp",
"test-rust",
"test-website",
"test-e2e",
"lock-sed",
"lint-deno",
"lint-udeps",
"install-wasi-adapter",
"install-lsp",
"install-website",
"install-ts",
"install-py",
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,52 +289,6 @@ jobs:
docker buildx imagetools create --tag ${{ env.REGISTRY_IMAGE }}:${{ steps.latest-tag.outputs.tag }} --tag ${{ env.REGISTRY_IMAGE }}:latest $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:latest

pub-vscode-extension:
needs:
- check-bump
if: |
always()
&& (
needs.check-bump.result == 'success'
|| github.event_name == 'workflow_dispatch'
)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: WyriHaximus/[email protected]
id: latest-tag
- uses: metatypedev/setup-ghjk@318209a9d215f70716a4ac89dbeb9653a2deb8bc
- shell: bash
run: |
cd src/meta-lsp
pnpm install --frozen-lockfile
cd ts-language-server
pnpm install --frozen-lockfile
cd ../vscode-metatype-support
pnpm install --frozen-lockfile
cd ..
pnpm compile:ts-server
pnpm compile:vscode
pnpm vscode:package

# avoid publishing pre-release versions as they don't
# support it
if [[ "$(ghjk x version-print)" != *-* ]]; then
if [ ${{ github.event_name == 'workflow_dispatch' && inputs.ovewriteArtifacts }} == 'true' ]; then
pnpm run vscode:publish -p ${{ secrets.AZURE_DEVOPS_TOKEN }} --skip-duplicate
else
pnpm run vscode:publish -p ${{ secrets.AZURE_DEVOPS_TOKEN }}
fi
fi
- uses: svenstaro/upload-release-action@v2
with:
tag: ${{ steps.latest-tag.outputs.tag }}
file: "src/meta-lsp/*.vsix"
file_glob: true
overwrite: ${{ inputs.ovewriteArtifacts }}

bump:
needs:
- pub-meta-cli
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ jobs:

ghjk x install-ts
ghjk x install-website
ghjk x install-lsp
ghjk x fetch-deno

# pre-resolve everything to disable resolutions
Expand Down Expand Up @@ -320,20 +319,3 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.lcov
fail_ci_if_error: true

test-lsp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: metatypedev/setup-ghjk@318209a9d215f70716a4ac89dbeb9653a2deb8bc
- shell: bash
run: |
ghjk x install-lsp
ghjk x test-lsp
# node --test --import=tsx --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=coverage.lcov tests/*.test.ts

# - uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./meta-lsp/ts-language-server/coverage.lcov
# fail_ci_if_error: true
1 change: 0 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"./src/typegraph/deno/src/gen",
"./docs/metatype.dev",
"./src/typegraph/node",
"./src/meta-lsp",
"target"
],
"rules": {
Expand Down
3 changes: 0 additions & 3 deletions docs/metatype.dev/docs/concepts/comparisons/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ Feature/Capability Key:
| Development SDKs | :white_check_mark: | :white_check_mark: | :red_circle: | :red_circle: (Most) <br/> :white_check_mark: (few) |
| CLI | :white_check_mark: | :white_check_mark: (some) <br/> :red_circle: (some) | :white_check_mark: | :red_circle: |
| Dev Tools | :white_check_mark: | :white_check_mark: | :white_check_mark: | :red_circle: |
| LSP and Extensions | :white_check_mark:\* | :white_circle: | :white_circle: | :red_circle: |
| Authentication | - Basic Auth <br/> - JWT <br/> - OAuth | - Basic Auth <br/> - JWT <br/> - OAuth <br/> - JWT | - email/phone/password <br/> - JWT - OAuth | - email/phone/password <br/> - JWT <br/> - OAuth <br/> - JWT |
| Authorization | - policy-based access control (PBAC) | - policy-based access control (PBAC) <br/> - role-based access control (RBAC) | - role-based access control (RBAC) | - Custom Authorization logic from the User |
| Type System | [Custom Types](/docs/reference/types) | - JS objects <br/> - GraphQL Schemas <br/> - Database Types | JS objects | Custom Types |
Expand Down Expand Up @@ -112,8 +111,6 @@ Feature/Capability Key:

**Dev Tools**: Tools and utilities provided to aid developers in coding, debugging, testing, and profiling applications.

**LSP and Extensions**: Language Server Protocol (LSP) and Extensions support for enhanced development experience, including features like syntax highlighting, auto-completion, and error checking.

#### Security

**Authentication**: Mechanisms for verifying the identity of users or entities accessing the software solution.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ Usage: meta [OPTIONS] [COMMAND]

Commands: serialize Serialize the typegraphs defined in the specified python file(s) into JSON dev Push typegraph(s) with development mode features enabled deploy Push typegraph(s) to typegate undeploy Undeploy typegraph(s) from typegate gen Access metagen generators upgrade Upgrade completion Generate shell completion doctor Troubleshoot the installation new Create a new Metatype project typegate Access a minimal deno CLI help Print this message or the help of the given subcommand(s)

Options: --version -v, --verbose... Increase logging verbosity -q, --quiet... Decrease logging verbosity -C, --dir <DIR> [default: .] --config <CONFIG> path to the config file -h, --help Print help ` } </CodeBlock> ], [ { title: "Metagen", status: "beta", link: "#", body: ( <> Code generation suite that supports Rust, Python and Typescript. Generate types from your graph and other helper functions for authoring custom functions for the Wasm, Python and Deno runtimes respectively. Can be accessed through the CLI under the <code>gen</code> subcommand or through the different SDKs. </> ), }, { title: "Meta LSP", status: "beta", body: ( <> Extension for your IDE to help authoring of typegraphs. Supports VSCode as of now. </> ), }, <div></div> ], [ { title: "Docker images", status: "complete", link: "https://github.com/orgs/metatypedev/packages/container/package/typegate", body: ( <> The typegate is primarily distributed as a docker image for deployment as a container. All the available configuration environment variables can be found <Link to="http://localhost:3000/docs/reference/typegate#environment-variables">here</Link>. </> ), }, { title: "Helm charts", status: "complete", link: "/docs/guides/self-hosting", body: ( <> Helm charts are published to ease installation of a typegate deployment in your Kubernetes cluster. </> ), }, ], [ <CodeBlock language="shell"> {`docker run --rm --pull always \\ -p 7890:7890 \\ -e TG_SECRET=$(openssl rand -base64 64 | tr -d '\\n') \\ -e TG_ADMIN_PASSWORD="password" \\ ghcr.io/metatypedev/typegate:latest`} </CodeBlock> ] ]} />
Options: --version -v, --verbose... Increase logging verbosity -q, --quiet... Decrease logging verbosity -C, --dir <DIR> [default: .] --config <CONFIG> path to the config file -h, --help Print help ` } </CodeBlock> ], [ { title: "Metagen", status: "beta", link: "#", body: ( <> Code generation suite that supports Rust, Python and Typescript. Generate types from your graph and other helper functions for authoring custom functions for the Wasm, Python and Deno runtimes respectively. Can be accessed through the CLI under the <code>gen</code> subcommand or through the different SDKs. </> ), }, <div></div> ], [ { title: "Docker images", status: "complete", link: "https://github.com/orgs/metatypedev/packages/container/package/typegate", body: ( <> The typegate is primarily distributed as a docker image for deployment as a container. All the available configuration environment variables can be found <Link to="http://localhost:3000/docs/reference/typegate#environment-variables">here</Link>. </> ), }, { title: "Helm charts", status: "complete", link: "/docs/guides/self-hosting", body: ( <> Helm charts are published to ease installation of a typegate deployment in your Kubernetes cluster. </> ), }, ], [ <CodeBlock language="shell"> {`docker run --rm --pull always \\ -p 7890:7890 \\ -e TG_SECRET=$(openssl rand -base64 64 | tr -d '\\n') \\ -e TG_ADMIN_PASSWORD="password" \\ ghcr.io/metatypedev/typegate:latest`} </CodeBlock> ] ]} />

<br />

Expand Down
29 changes: 0 additions & 29 deletions src/meta-lsp/.eslintrc.yml

This file was deleted.

6 changes: 0 additions & 6 deletions src/meta-lsp/.vscodeignore

This file was deleted.

1 change: 0 additions & 1 deletion src/meta-lsp/LICENSE.md

This file was deleted.

27 changes: 0 additions & 27 deletions src/meta-lsp/README.md

This file was deleted.

1 change: 0 additions & 1 deletion src/meta-lsp/logo.png

This file was deleted.

49 changes: 0 additions & 49 deletions src/meta-lsp/package.json

This file was deleted.

Loading
Loading