-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NPM workspaces for language servers
Reorganize the server project into a monorepo using NPM workspaces. It allows to split each workflow language server on its own project and reuse/share local packages.
- Loading branch information
Showing
51 changed files
with
434 additions
and
132 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
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "gx-workflow-ls-format2", | ||
"version": "0.1.0", | ||
"description": "Language server implementation for Galaxy gxformat2 (YAML) workflows.", | ||
"author": "davelopez", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@gxwf/server-common": "*", | ||
"@gxwf/yaml-language-service": "*" | ||
}, | ||
"devDependencies": {}, | ||
"scripts": {} | ||
} |
2 changes: 1 addition & 1 deletion
2
server/src/gxformat2Server/browser/server.ts → ...workflow-ls-format2/src/browser/server.ts
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
2 changes: 1 addition & 1 deletion
2
...ormat2Server/gxFormat2WorkflowDocument.ts → ...-format2/src/gxFormat2WorkflowDocument.ts
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
2 changes: 1 addition & 1 deletion
2
server/src/gxformat2Server/node/server.ts → ...gx-workflow-ls-format2/src/node/server.ts
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,12 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2019", | ||
"lib": ["ES2019", "WebWorker"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"esModuleInterop": true, | ||
"sourceMap": true, | ||
"strict": true | ||
} | ||
} |
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,45 @@ | ||
/* eslint-disable no-undef */ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
|
||
//@ts-check | ||
/** @typedef {import('webpack').Configuration} WebpackConfig **/ | ||
|
||
//@ts-check | ||
"use strict"; | ||
|
||
const withDefaults = require("../../shared.webpack.config"); | ||
const path = require("path"); | ||
|
||
/** @type WebpackConfig */ | ||
const nodeGxFormat2ServerConfig = withDefaults({ | ||
mode: "none", | ||
context: path.join(__dirname), | ||
target: "node", // regular extensions run in node context | ||
entry: { | ||
gxFormat2Server: "./src/node/server.ts", | ||
}, | ||
output: { | ||
filename: "[name].js", | ||
path: path.join(__dirname, "dist"), | ||
libraryTarget: "var", | ||
library: "serverExportVar", | ||
}, | ||
}); | ||
|
||
/** @type WebpackConfig */ | ||
const browserGxFormat2ServerConfig = withDefaults({ | ||
mode: "none", | ||
context: path.join(__dirname), | ||
target: "webworker", // web extensions run in a webworker context | ||
entry: { | ||
gxFormat2Server: "./src/browser/server.ts", | ||
}, | ||
output: { | ||
filename: "[name].js", | ||
path: path.join(__dirname, "dist", "web"), | ||
libraryTarget: "var", | ||
library: "serverExportVar", | ||
}, | ||
}); | ||
|
||
module.exports = [nodeGxFormat2ServerConfig, browserGxFormat2ServerConfig]; |
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,15 @@ | ||
{ | ||
"name": "gx-workflow-ls-native", | ||
"version": "0.1.0", | ||
"description": "Language server implementation for Galaxy native (JSON) workflows.", | ||
"author": "davelopez", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@gxwf/server-common": "*" | ||
}, | ||
"scripts": { | ||
"webpack": "webpack", | ||
"watch": "webpack --watch --progress", | ||
"test-unit": "jest" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
server/src/nativeServer/browser/server.ts → ...-workflow-ls-native/src/browser/server.ts
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
2 changes: 1 addition & 1 deletion
2
server/src/nativeServer/jsonUtils.ts → ...er/gx-workflow-ls-native/src/jsonUtils.ts
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
2 changes: 1 addition & 1 deletion
2
...rc/nativeServer/nativeWorkflowDocument.ts → ...w-ls-native/src/nativeWorkflowDocument.ts
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
2 changes: 1 addition & 1 deletion
2
server/src/nativeServer/node/server.ts → .../gx-workflow-ls-native/src/node/server.ts
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,13 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2019", | ||
"lib": ["ES2019", "WebWorker"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"esModuleInterop": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"rootDirs": ["src"] | ||
} | ||
} |
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,47 @@ | ||
/* eslint-disable no-undef */ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
|
||
//@ts-check | ||
/** @typedef {import('webpack').Configuration} WebpackConfig **/ | ||
|
||
//@ts-check | ||
"use strict"; | ||
|
||
const withDefaults = require("../../shared.webpack.config"); | ||
const path = require("path"); | ||
|
||
/** Native (JSON) Server */ | ||
|
||
/** @type WebpackConfig */ | ||
const nodeNativeServerConfig = withDefaults({ | ||
mode: "none", | ||
context: path.join(__dirname), | ||
target: "node", // regular extensions run in node context | ||
entry: { | ||
nativeServer: "./src/node/server.ts", | ||
}, | ||
output: { | ||
filename: "[name].js", | ||
path: path.join(__dirname, "dist"), | ||
libraryTarget: "var", | ||
library: "serverExportVar", | ||
}, | ||
}); | ||
|
||
/** @type WebpackConfig */ | ||
const browserNativeServerConfig = withDefaults({ | ||
mode: "none", | ||
context: path.join(__dirname), | ||
target: "webworker", // web extensions run in a webworker context | ||
entry: { | ||
nativeServer: "./src/browser/server.ts", | ||
}, | ||
output: { | ||
filename: "[name].js", | ||
path: path.join(__dirname, "dist", "web"), | ||
libraryTarget: "var", | ||
library: "serverExportVar", | ||
}, | ||
}); | ||
|
||
module.exports = [nodeNativeServerConfig, browserNativeServerConfig]; |
Oops, something went wrong.