-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move example project 'SuperBrewer3000' to client/workspace and adapt all paths accordingly - Rename frontend folder to client and adapt all paths - Update client code to Theia 1.27.0 an current versions of glsp, sprotty and emfcloud components - Update to newer typescript version and adapt code accordingly - Update theia plugins to newest compatible versions to ensure cpp and java debugging - Reuse tsconfig, eslint and prettier configs by eclipse-glsp - Align build scripts, devDependencies and package.json descriptions - Fix custom file icons alignment - #348 Replace run.sh script with ts-node scripts and yarn scripts - Create parent package.json that offers the main build scripts build:server and build:client as well as a convenience script that combines those two - Move copying of backend products in the build of the repsonsible client package coffee-servers and replace with ts-node script - Move all server backend registrations to coffee-servers package
- Loading branch information
Showing
159 changed files
with
6,174 additions
and
4,462 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 |
---|---|---|
|
@@ -23,19 +23,20 @@ WORKDIR /coffee-editor | |
COPY --chown=theia:theia . . | ||
USER theia | ||
|
||
RUN ./run.sh -bcf && \ | ||
cp ./web/favicon.ico ./web/browser-app/lib | ||
RUN sed -i 's/<\/head>/<link rel="icon" href="favicon.ico" \/><\/head>/g' web/browser-app/lib/index.html | ||
# Trigger build: Build backend, build client | ||
RUN yarn build | ||
RUN cp ./client/favicon.ico ./client/browser-app/lib | ||
RUN sed -i 's/<\/head>/<link rel="icon" href="favicon.ico" \/><\/head>/g' client/browser-app/lib/index.html | ||
|
||
WORKDIR /coffee-editor/backend/examples/SuperBrewer3000 | ||
WORKDIR /coffee-editor/client/workspace/SuperBrewer3000 | ||
|
||
RUN git config --global user.name "Test User" | ||
RUN git config --global user.email "[email protected]" | ||
RUN git init | ||
RUN git add * | ||
RUN git commit -m "init" | ||
|
||
WORKDIR /coffee-editor/web/browser-app | ||
WORKDIR /coffee-editor/client/browser-app | ||
|
||
EXPOSE 3000 | ||
|
||
|
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 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,35 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
extends: '@eclipse-glsp', | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
project: 'tsconfig.json' | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
rules: { | ||
// eslint-plugin-header | ||
'header/header': [ | ||
2, | ||
'block', | ||
[ | ||
{ | ||
pattern: '[\n\r]+ \\* Copyright \\([cC]\\) \\d{4}(-\\d{4})? .*[\n\r]+', | ||
template: ` | ||
* Copyright (c) 2022 EclipseSource and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0, or the MIT License which is | ||
* available at https://opensource.org/licenses/MIT. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR MIT | ||
` | ||
} | ||
] | ||
] | ||
} | ||
} | ||
] | ||
}; |
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 |
---|---|---|
|
@@ -5,4 +5,6 @@ out/ | |
*-app/* | ||
!*-app/package.json | ||
server/ | ||
servers/ | ||
*.vsix | ||
tsconfig.tsbuildinfo |
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 @@ | ||
"@eclipse-glsp/prettier-config" |
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
File renamed without changes.
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 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,86 @@ | ||
{ | ||
"private": true, | ||
"name": "browser-app", | ||
"license": "(EPL-2.0 OR MIT)", | ||
"version": "0.1.0", | ||
"contributors": [ | ||
{ | ||
"name": "Eclipse EMF.cloud Project", | ||
"email": "[email protected]", | ||
"url": "https://projects.eclipse.org/projects/ecd.emfcloud" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/eclipse-emfcloud/coffee-editor.git" | ||
}, | ||
"homepage": "https://www.eclipse.org/emfcloud/", | ||
"bugs": "https://github.com/eclipse-emfcloud/coffee-editor/issues", | ||
"dependencies": { | ||
"@theia/callhierarchy": "1.27.0", | ||
"@theia/console": "1.27.0", | ||
"@theia/core": "1.27.0", | ||
"@theia/debug": "1.27.0", | ||
"@theia/editor": "1.27.0", | ||
"@theia/file-search": "1.27.0", | ||
"@theia/filesystem": "1.27.0", | ||
"@theia/keymaps": "1.27.0", | ||
"@theia/markers": "1.27.0", | ||
"@theia/messages": "1.27.0", | ||
"@theia/mini-browser": "1.27.0", | ||
"@theia/monaco": "1.27.0", | ||
"@theia/navigator": "1.27.0", | ||
"@theia/outline-view": "1.27.0", | ||
"@theia/output": "1.27.0", | ||
"@theia/plugin-dev": "1.27.0", | ||
"@theia/plugin-ext": "1.27.0", | ||
"@theia/plugin-ext-vscode": "1.27.0", | ||
"@theia/plugin-metrics": "1.27.0", | ||
"@theia/preferences": "1.27.0", | ||
"@theia/process": "1.27.0", | ||
"@theia/scm": "1.27.0", | ||
"@theia/scm-extra": "1.27.0", | ||
"@theia/search-in-workspace": "1.27.0", | ||
"@theia/task": "1.27.0", | ||
"@theia/terminal": "1.27.0", | ||
"@theia/typehierarchy": "1.27.0", | ||
"@theia/userstorage": "1.27.0", | ||
"@theia/variable-resolver": "1.27.0", | ||
"@theia/vsx-registry": "1.27.0", | ||
"@theia/workspace": "1.27.0", | ||
"coffee-cpp-extension": "0.1.0", | ||
"coffee-comparison": "0.1.0", | ||
"coffee-editor-extension": "0.1.0", | ||
"coffee-java-extension": "0.1.0", | ||
"coffee-servers": "0.1.0", | ||
"coffee-welcome-page": "0.1.0", | ||
"coffee-workflow-glsp-theia": "0.1.0", | ||
"coffee-workflow-analyzer": "0.1.0" | ||
}, | ||
"devDependencies": { | ||
"@theia/cli": "1.27.0" | ||
}, | ||
"scripts": { | ||
"prepare": "yarn run download:plugins && theia build --mode development", | ||
"start": "export WF_CONFIG_LSP=localhost:5017 && theia start --WF_GLSP=5008 --hostname=0.0.0.0 --port=3000 --root-dir=../workspace/examples/SuperBrewer3000 --plugins=local-dir:./plugins", | ||
"start:debug": "export WF_CONFIG_LSP=localhost:5017 && theia start --WF_GLSP=5008 --port=3000 --root-dir=../workspace/SuperBrewer3000 --loglevel=debug --plugins=local-dir:./plugins --debug", | ||
"watch": "theia build --watch --mode development", | ||
"download:plugins": "theia download:plugins" | ||
}, | ||
"theia": { | ||
"target": "browser" | ||
}, | ||
"theiaPluginsDir": "plugins", | ||
"theiaPlugins": { | ||
"java-debug": "https://github.com/microsoft/vscode-java-debug/releases/download/0.43.0/vscjava.vscode-java-debug-0.43.0.vsix", | ||
"java-lsp": "https://download.jboss.org/jbosstools/static/jdt.ls/stable/java-1.1.0-465.vsix", | ||
"vscode-builtin-cpp": "https://open-vsx.org/api/vscode/cpp/1.62.3/file/vscode.cpp-1.62.3.vsix", | ||
"vscode-builtin-java": "https://open-vsx.org/api/vscode/java/1.62.3/file/vscode.java-1.62.3.vsix", | ||
"vscode-builtin-json": "https://open-vsx.org/api/vscode/json/1.62.3/file/vscode.json-1.62.3.vsix", | ||
"vscode-builtin-json-language-features": "https://open-vsx.org/api/vscode/json-language-features/1.62.3/file/vscode.json-language-features-1.62.3.vsix", | ||
"vscode-builtin-xml": "https://open-vsx.org/api/vscode/xml/1.62.3/file/vscode.xml-1.62.3.vsix", | ||
"vscode-clangd": "https://open-vsx.org/api/llvm-vs-code-extensions/vscode-clangd/0.1.15/file/llvm-vs-code-extensions.vscode-clangd-0.1.15.vsix", | ||
"vscode-cmake": "https://open-vsx.org/api/ms-vscode/cmake-tools/1.11.26/file/ms-vscode.cmake-tools-1.11.26.vsix", | ||
"cdt-gdb-vscode": "https://open-vsx.org/api/eclipse-cdt/cdt-gdb-vscode/0.0.91/file/eclipse-cdt.cdt-gdb-vscode-0.0.91.vsix" | ||
} | ||
} |
Oops, something went wrong.