diff --git a/diagrams.net/.vscode/launch.json b/diagrams.net/.vscode/launch.json new file mode 100644 index 000000000..3becd16a7 --- /dev/null +++ b/diagrams.net/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}/src/index.js", + "env": { + "KROKI_SAFE_MODE":"unsafe", + "KROKI_DRAWIO_PORT":"9000" + } + } + ] +} \ No newline at end of file diff --git a/diagrams.net/.vscode/settings.json b/diagrams.net/.vscode/settings.json new file mode 100644 index 000000000..217e5a2c7 --- /dev/null +++ b/diagrams.net/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "triggerTaskOnSave.tasks": { + "lint": [ + "src/*.js" + ], + } +} \ No newline at end of file diff --git a/diagrams.net/.vscode/tasks.json b/diagrams.net/.vscode/tasks.json new file mode 100644 index 000000000..8871ee1f7 --- /dev/null +++ b/diagrams.net/.vscode/tasks.json @@ -0,0 +1,26 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "lint", + "type": "shell", + "command": "${workspaceFolder}/node_modules/.bin/standard", + "args": ["${file}"], + "options": { "cwd": "${fileDirname}" }, + "presentation": { "reveal": "never" }, + "problemMatcher": { + "owner": "js", + "severity": "warning", + "fileLocation": ["absolute"], + "pattern": { + "regexp": "^(.*):(\\d+):(\\d+): (.+)$", + "file": 1, + "line": 2, + "column": 3, + "message": 4 + } + }, + "isBackground": false + } + ] +}