-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Deploy all examples that do not require a backend to GitHub Pages
- Loading branch information
Showing
18 changed files
with
249 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Build Production for GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- "ghp" | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
ghp-build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Volta | ||
uses: volta-cli/action@v4 | ||
|
||
- name: Use pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9 | ||
|
||
- name: Install | ||
shell: bash | ||
run: | | ||
npm ci | ||
- name: Build | ||
run: | | ||
npm run report:versions | ||
npm run build | ||
- name: Build Production | ||
run: | | ||
npm run production:build | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./packages/examples/production/ | ||
|
||
ghp-deploy: | ||
needs: ghp-build | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Verification Builds | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'verify' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
verify: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Volta | ||
uses: volta-cli/action@v4 | ||
|
||
- name: Use pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9 | ||
|
||
- name: Execute verification | ||
shell: bash | ||
run: | | ||
bash ./verify/buildAll.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ resources/groovy/external | |
resources/eclipse.jdt.ls/ls | ||
resources/eclipse.jdt.ls/*.tar.gz | ||
resources/vsix | ||
production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>monaco-languageclient Examples</title> | ||
<link rel="stylesheet" href="./style.css"> | ||
</head> | ||
|
||
<body> | ||
<div style="padding: 5px"> | ||
<h2>Examples</h2> | ||
|
||
<h2>Monaco Editor Wrapper</h2> | ||
|
||
<h3>Langium</h3> | ||
|
||
<a href="./langium.html">Langium Grammar DSL Language Client & Language Server (Worker)</a> | ||
<br> | ||
<a href="./statemachine.html">Langium Statemachine Client & Language Server (Worker)</a> | ||
<br> | ||
Localizations: <a href="./statemachine.html?locale=de">German</a> <a href="./statemachine.html?locale=fr">French</a> and <a href="./statemachine.html?locale=es">Spanish</a><br> | ||
|
||
<h3>Cpp / Clangd</h3> | ||
<a href="./clangd.html">Cpp Language Client & Clangd Language Server (Worker/Wasm)</a> | ||
<br> | ||
|
||
<h3>JSON</h3> | ||
<a href="./browser.html">Language Client Pure Browser Example</a> | ||
<br> | ||
|
||
<h3>TypeScript</h3> | ||
<a href="./tsExtHost.html">TypeScript Extension Host Worker</a> | ||
<br> | ||
|
||
<h2>Monaco Editor React</h2> | ||
<a href="./react_statemachine.html">React: Langium Statemachine Language Client & Language Server (Worker)</a> | ||
<br> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineConfig } from 'vite'; | ||
import { buildBaseProductionConfig } from './vite.production.base.js'; | ||
|
||
export default defineConfig(({ command }) => { | ||
console.log(`Running: ${command}`); | ||
const productionConfig = buildBaseProductionConfig(); | ||
productionConfig.base = 'https://typefox.github.io/monaco-languageclient/'; | ||
return productionConfig; | ||
}); | ||
|
Oops, something went wrong.