Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Co-authored-by: Maximilian Hoerstrup <[email protected]>
Co-authored-by: Peter Detzner <[email protected]>
  • Loading branch information
3 people committed Nov 7, 2023
0 parents commit cccd540
Show file tree
Hide file tree
Showing 80 changed files with 15,179 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintignore
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/**
22 changes: 22 additions & 0 deletions .eslintrc.js
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'
}
};
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
out
node_modules
.vscode-test
coverage
media
client/bundle.js
80 changes: 80 additions & 0 deletions .gitlab-ci.yml
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
4 changes: 4 additions & 0 deletions .gitmodules
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
7 changes: 7 additions & 0 deletions .prettierignore
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
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": true,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 80
}
33 changes: 33 additions & 0 deletions .vscode/launch.json
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"]
}
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
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
}
47 changes: 47 additions & 0 deletions .vscode/tasks.json
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"]
}
]
}
20 changes: 20 additions & 0 deletions .vscodeignore
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}/**
19 changes: 19 additions & 0 deletions LICENSE
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.
Loading

0 comments on commit cccd540

Please sign in to comment.