-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Maximilian Hoerstrup <[email protected]> Co-authored-by: Peter Detzner <[email protected]>
- Loading branch information
Showing
80 changed files
with
15,179 additions
and
0 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,6 @@ | ||
node_modules/** | ||
client/node_modules/** | ||
client/out/** | ||
client/bundle.js | ||
server/node_modules/** | ||
server/out/** |
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,22 @@ | ||
/**@type {import('eslint').Linter.Config} */ | ||
// eslint-disable-next-line no-undef | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier' | ||
], | ||
rules: { | ||
'@typescript-eslint/no-unused-vars': 0, | ||
'@typescript-eslint/no-var-requires': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/explicit-module-boundary-types': 0, | ||
'@typescript-eslint/no-non-null-assertion': 0, | ||
'prettier/prettier': 2, | ||
curly: 'error', | ||
camelcase: 'error' | ||
} | ||
}; |
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,6 @@ | ||
out | ||
node_modules | ||
.vscode-test | ||
coverage | ||
media | ||
client/bundle.js |
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,80 @@ | ||
image: node:latest | ||
|
||
stages: | ||
- 'Install npm' | ||
- 'Building extension' | ||
- 'Testing Code Visualization' | ||
- 'Deploy' | ||
|
||
npm: | ||
stage: 'Install npm' | ||
script: | ||
- npm install | ||
cache: | ||
paths: | ||
- node_modules/ | ||
artifacts: | ||
untracked: true | ||
expire_in: 30 mins | ||
paths: | ||
- node_modules/ | ||
tags: | ||
- intranet | ||
|
||
build: | ||
stage: 'Building extension' | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
script: | ||
- npm run compile | ||
- npm run browserify | ||
- npm install -g @vscode/vsce | ||
- vsce package --out "./pfdl-extension.vsix" | ||
cache: | ||
paths: | ||
- node_modules/ | ||
artifacts: | ||
paths: | ||
- ./pfdl-extension.vsix | ||
dependencies: | ||
- npm | ||
tags: | ||
- intranet | ||
|
||
test: | ||
stage: 'Testing Code Visualization' | ||
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/ | ||
script: | ||
- npm run test:ci | ||
cache: | ||
paths: | ||
- coverage/ | ||
artifacts: | ||
paths: | ||
- coverage/ | ||
- junit.xml | ||
when: always | ||
reports: | ||
junit: | ||
- junit.xml | ||
coverage_report: | ||
coverage_format: cobertura | ||
path: coverage/cobertura-coverage.xml | ||
dependencies: | ||
- npm | ||
tags: | ||
- intranet | ||
|
||
pages: | ||
stage: 'Deploy' | ||
dependencies: | ||
- test | ||
script: | ||
- mkdir .public | ||
- cp -r coverage/* .public | ||
- mv .public public | ||
artifacts: | ||
paths: | ||
- public | ||
only: | ||
- master |
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,4 @@ | ||
[submodule "pfdl"] | ||
path = pfdl | ||
url = https://github.com/iml130/pfdl.git | ||
branch = main |
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,7 @@ | ||
node_modules/** | ||
client/node_modules/** | ||
client/out/** | ||
client/bundle.js | ||
server/node_modules/** | ||
server/out/** | ||
pfdl |
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,6 @@ | ||
{ | ||
"semi": true, | ||
"trailingComma": "none", | ||
"singleQuote": true, | ||
"printWidth": 80 | ||
} |
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,33 @@ | ||
// SPDX-FileCopyrightText: Microsoft Corporation | ||
// SPDX-FileCopyrightText: The PFDL VS Code Extension Contributors | ||
// SPDX-License-Identifier: MIT | ||
|
||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"name": "Launch Client", | ||
"runtimeExecutable": "${execPath}", | ||
"args": ["--extensionDevelopmentPath=${workspaceRoot}"], | ||
"outFiles": ["${workspaceRoot}/client/out/**/*.js"], | ||
"preLaunchTask": "prepare_and_watch" | ||
}, | ||
{ | ||
"trace": true, | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach to Server", | ||
"port": 6009, | ||
"restart": true, | ||
"outFiles": ["${workspaceRoot}/server/out/**/*.js"] | ||
} | ||
], | ||
"compounds": [ | ||
{ | ||
"name": "Client + Server", | ||
"configurations": ["Launch Client", "Attach to Server"] | ||
} | ||
] | ||
} |
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,11 @@ | ||
// SPDX-FileCopyrightText: The PFDL VS Code Extension Contributors | ||
// SPDX-License-Identifier: MIT | ||
{ | ||
"editor.insertSpaces": false, | ||
"eslint.enable": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"typescript.tsc.autoDetect": "off", | ||
"editor.formatOnSave": true, | ||
"eslint.validate": ["javascript", "typescript"], | ||
"files.insertFinalNewline": 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,47 @@ | ||
// SPDX-FileCopyrightText: Microsoft Corporation | ||
// SPDX-FileCopyrightText: The PFDL VS Code Extension Contributors | ||
// SPDX-License-Identifier: MIT | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "compile", | ||
"group": "build", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
}, | ||
"problemMatcher": ["$tsc"] | ||
}, | ||
{ | ||
"label": "npm_watch", | ||
"type": "npm", | ||
"script": "watch", | ||
"isBackground": true, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
}, | ||
"problemMatcher": ["$tsc-watch"] | ||
}, | ||
{ | ||
"label": "browserify", | ||
"type": "npm", | ||
"script": "browserify" | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "remove_dot_files", | ||
"command": "rm -rf ./media && mkdir media" | ||
}, | ||
{ | ||
"label": "prepare_and_watch", | ||
"dependsOn": ["browserify", "remove_dot_files", "npm_watch"] | ||
} | ||
] | ||
} |
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,20 @@ | ||
# SPDX-FileCopyrightText: Microsoft Corporation | ||
# SPDX-License-Identifier: MIT | ||
|
||
# imported from https://github.com/microsoft/vscode-extension-samples/tree/3d5bb2c3788e2a2a99272222289afcb659cd51a3/lsp-sample | ||
|
||
.vscode/** | ||
**/*.ts | ||
**/*.map | ||
.gitignore | ||
**/tsconfig.json | ||
**/tsconfig.base.json | ||
contributing.md | ||
.travis.yml | ||
client/node_modules/** | ||
!client/node_modules/vscode-jsonrpc/** | ||
!client/node_modules/vscode-languageclient/** | ||
!client/node_modules/vscode-languageserver-protocol/** | ||
!client/node_modules/vscode-languageserver-types/** | ||
!client/node_modules/{minimatch,brace-expansion,concat-map,balanced-match}/** | ||
!client/node_modules/{semver,lru-cache,yallist}/** |
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,19 @@ | ||
Copyright The PFDL VS Code Extension Contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.