From 295bbf6befffa8974d0f66f2ebe4e05395aaa0b5 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 8 Apr 2023 22:57:03 +0100 Subject: [PATCH] repo cleanup --- .gitignore | 5 +- .vs/isn/xs/UserPrefs.xml | 27 ---- .vscode/launch.json | 52 ------- .vscode/settings.json | 52 ------- .vscode/solution-explorer/class.cs-template | 8 -- .vscode/solution-explorer/class.ts-template | 3 - .vscode/solution-explorer/class.vb-template | 9 -- .vscode/solution-explorer/default.ts-template | 3 - .vscode/solution-explorer/enum.cs-template | 8 -- .../solution-explorer/interface.cs-template | 8 -- .../solution-explorer/interface.ts-template | 3 - .vscode/solution-explorer/template-list.json | 46 ------- .../solution-explorer/template-parameters.js | 17 --- .vscode/tasks.json | 129 ------------------ 14 files changed, 4 insertions(+), 366 deletions(-) delete mode 100644 .vs/isn/xs/UserPrefs.xml delete mode 100644 .vscode/launch.json delete mode 100644 .vscode/settings.json delete mode 100644 .vscode/solution-explorer/class.cs-template delete mode 100644 .vscode/solution-explorer/class.ts-template delete mode 100644 .vscode/solution-explorer/class.vb-template delete mode 100644 .vscode/solution-explorer/default.ts-template delete mode 100644 .vscode/solution-explorer/enum.cs-template delete mode 100644 .vscode/solution-explorer/interface.cs-template delete mode 100644 .vscode/solution-explorer/interface.ts-template delete mode 100644 .vscode/solution-explorer/template-list.json delete mode 100644 .vscode/solution-explorer/template-parameters.js delete mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index 7c0116b..68dafe9 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,7 @@ appsettings.Development.json /test/data/test-isn/bin/ /test/data/test-isn/obj .fake -artifacts/ +/artifacts/ +/.vs/ +/.vscode/ + diff --git a/.vs/isn/xs/UserPrefs.xml b/.vs/isn/xs/UserPrefs.xml deleted file mode 100644 index 783b2ea..0000000 --- a/.vs/isn/xs/UserPrefs.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 9761382..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - // Utilisez IntelliSense pour en savoir plus sur les attributs possibles. - // Pointez pour afficher la description des attributs existants. - // Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": ".NET Core Attach", - "type": "coreclr", - "request": "attach" - }, - { - "name": "push", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build", - "program": "${workspaceFolder}/src/isn/bin/Debug/netcoreapp2.1/isn.dll", - "requireExactSource": false, - "args": [ - "push", - "-s", "http://localhost:5000/index.json", - "-k", "CfDJ8PZdCuMAkkdPqlnuLoghOuKBNLoprBqsy64fJqrYnVEOCj-eI7pfoVjHPXHazx_YSUDtnz9ic8olLY6JcZYOE2lVfpThjs8bE73AR4HjDQPhiMOY2NU-lWtCuxhk0K16xqOoFU5pAPLF83-YXJtt02_WMAQWfxVbq5_LpskRcZrk", - "-p", - "/home/paul/Nupkgs/Yavsc.Abstract.1.0.8.nupkg" - ], - "cwd": "${workspaceFolder}/src/isn", - "stopAtEntry": false, - "console": "internalConsole" - }, - { - "name": "web", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build", - "program": "${workspaceFolder}/src/isnd/bin/Debug/net7.0/isnd.dll", - "args": [], - "cwd": "${workspaceFolder}/src/isnd", - "stopAtEntry": false, - "requireExactSource": false, - "serverReadyAction": { - "action": "openExternally", - "pattern": "\\bNow listening on:\\s+(https?://\\S+)" - }, - "env": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "sourceFileMap": { - "/Views": "${workspaceFolder}/Views" - } - } -] -} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 6574303..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "omnisharp.msbuild": true, - "dotnet-test-explorer.testProjectPath": "**/*tests.csproj", - "dotnet-test-explorer.runInParallel": false, - "dotnet-test-explorer.showCodeLens": true, - "dotnet-test-explorer.testArguments": "", - "nxunitExplorer.modules": [ - "test/i*/bin/Debug/*/*.tests.dll" - ], - "nxunitExplorer.skippattern": "", - "dotnetCoreExplorer.runEnvVars": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "dotnetCoreExplorer.searchpatterns": "test/**/bin/**/*.tests.{dll,exe}", - "sqltools.connections": [ - { - "previewLimit": 50, - "server": "localhost", - "port": 5432, - "driver": "PostgreSQL", - "name": "isndev", - "group": "isn", - "database": "dotnetmvc", - "username": "dotnetmvc", - "password": "RvJa=y#b/tfg" - }, - { - "previewLimit": 50, - "server": "localhost", - "port": 5432, - "askForPassword": true, - "driver": "PostgreSQL", - "name": "isnd", - "group": "isn", - "database": "webid", - "username": "webid" - }, - { - "previewLimit": 50, - "server": "localhost", - "port": 5432, - "askForPassword": true, - "driver": "PostgreSQL", - "name": "isnddev", - "group": "isn", - "database": "isnd", - "username": "paul" - } - ], - "omnisharp.disableMSBuildDiagnosticWarning": true, - "omnisharp.enableRoslynAnalyzers": false -} diff --git a/.vscode/solution-explorer/class.cs-template b/.vscode/solution-explorer/class.cs-template deleted file mode 100644 index 015da46..0000000 --- a/.vscode/solution-explorer/class.cs-template +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace {{namespace}} -{ - public class {{name}} - { - } -} diff --git a/.vscode/solution-explorer/class.ts-template b/.vscode/solution-explorer/class.ts-template deleted file mode 100644 index ff2edef..0000000 --- a/.vscode/solution-explorer/class.ts-template +++ /dev/null @@ -1,3 +0,0 @@ -export class {{name}} { - -} \ No newline at end of file diff --git a/.vscode/solution-explorer/class.vb-template b/.vscode/solution-explorer/class.vb-template deleted file mode 100644 index 38ef67f..0000000 --- a/.vscode/solution-explorer/class.vb-template +++ /dev/null @@ -1,9 +0,0 @@ -Imports System - -Namespace {{namespace}} - - Public Class {{name}} - - End Class - -End Namespace diff --git a/.vscode/solution-explorer/default.ts-template b/.vscode/solution-explorer/default.ts-template deleted file mode 100644 index 04af870..0000000 --- a/.vscode/solution-explorer/default.ts-template +++ /dev/null @@ -1,3 +0,0 @@ -export default {{name}} { - -} \ No newline at end of file diff --git a/.vscode/solution-explorer/enum.cs-template b/.vscode/solution-explorer/enum.cs-template deleted file mode 100644 index 7d4cdee..0000000 --- a/.vscode/solution-explorer/enum.cs-template +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace {{namespace}} -{ - public enum {{name}} - { - } -} diff --git a/.vscode/solution-explorer/interface.cs-template b/.vscode/solution-explorer/interface.cs-template deleted file mode 100644 index 6b5dec1..0000000 --- a/.vscode/solution-explorer/interface.cs-template +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace {{namespace}} -{ - public interface {{name}} - { - } -} diff --git a/.vscode/solution-explorer/interface.ts-template b/.vscode/solution-explorer/interface.ts-template deleted file mode 100644 index 3ea404b..0000000 --- a/.vscode/solution-explorer/interface.ts-template +++ /dev/null @@ -1,3 +0,0 @@ -export interface {{name}} { - -} \ No newline at end of file diff --git a/.vscode/solution-explorer/template-list.json b/.vscode/solution-explorer/template-list.json deleted file mode 100644 index 2849622..0000000 --- a/.vscode/solution-explorer/template-list.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "templates": [ - { - "name": "Class", - "extension": "cs", - "file": "./class.cs-template", - "parameters": "./template-parameters.js" - }, - { - "name": "Interface", - "extension": "cs", - "file": "./interface.cs-template", - "parameters": "./template-parameters.js" - }, - { - "name": "Enum", - "extension": "cs", - "file": "./enum.cs-template", - "parameters": "./template-parameters.js" - }, - { - "name": "Class", - "extension": "ts", - "file": "./class.ts-template", - "parameters": "./template-parameters.js" - }, - { - "name": "Interface", - "extension": "ts", - "file": "./interface.ts-template", - "parameters": "./template-parameters.js" - }, - { - "name": "Default", - "extension": "ts", - "file": "./default.ts-template", - "parameters": "./template-parameters.js" - }, - { - "name": "Class", - "extension": "vb", - "file": "./class.vb-template", - "parameters": "./template-parameters.js" - } - ] -} \ No newline at end of file diff --git a/.vscode/solution-explorer/template-parameters.js b/.vscode/solution-explorer/template-parameters.js deleted file mode 100644 index daba8b2..0000000 --- a/.vscode/solution-explorer/template-parameters.js +++ /dev/null @@ -1,17 +0,0 @@ -var path = require("path"); - -module.exports = function(filename, projectPath, folderPath) { - var namespace = "Unknown"; - if (projectPath) { - namespace = path.basename(projectPath, path.extname(projectPath)); - if (folderPath) { - namespace += "." + folderPath.replace(path.dirname(projectPath), "").substring(1).replace(/[\\\/]/g, "."); - } - namespace = namespace.replace(/[\\\-]/g, "_"); - } - - return { - namespace: namespace, - name: path.basename(filename, path.extname(filename)) - } -}; \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index b56fe83..0000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "label": "restore", - "command": "dotnet", - "type": "process", - "args": [ - "restore", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary", - "--ignore-failed-sources" - ], - "problemMatcher": "$msCompile" - }, - { - "label": "build", - "command": "dotnet", - "type": "process", - "args": [ - "build", - "/p:Configuration=Debug", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary" - ], - "problemMatcher": "$msCompile" - }, - { - "label": "db-upgrade", - "command": "dotnet", - "type": "process", - "args": [ - "ef", - "database", - "update" - ], - "problemMatcher": "$msCompile", - "options": { - "cwd": "${workspaceFolder}/src/isnd", - "env": { - "ASPNETCORE_ENV": "Development" - } - } - - - }, - - { - "label": "buildcli", - "command": "msbuild", - "type": "process", - "args": [ - "src/isn", - "/p:Configuration=Debug", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary", - "/restore" - ], - "problemMatcher": "$msCompile" - }, - { - "label": "publish", - "command": "dotnet", - "type": "process", - "args": [ - "publish", - "/p:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary", - "/p:TargetFramework=netcoreapp2.1", - "/p:RuntimeIdentifier=linux-x64", - "/p:PublishDir=${workspaceFolder}/artifacts" - ], - "problemMatcher": "$msCompile", - "options": { - "cwd": "${workspaceFolder}" - } - }, - { - "label": "monopublish", - "command": "msbuild", - "type": "process", - "args": [ - "/t:publish", - "/p:TargetFramework=netcoreapp2.1;PublishDir=${workspaceFolder}/artiffacts;RuntimeIdentifier=linux-x64", - - ], - "problemMatcher": "$msCompile" - }, - { - "label": "copyTestConfig", - "command": "dotnet", - "type": "process", - "args": [ "build", "/t:CopyTestConfig" ] - }, - { - "label": "test", - "command": "dotnet", - "type": "process", - "options": { - "env": { - "ASPNETCORE_ENVIRONMENT": "Testing" - } - }, - "args": [ - "test", - "/property:GenerateFullPaths=true", - "--logger:xunit" - ], - "problemMatcher": "$msCompile", - "dependsOn": [ "build", "copyTestConfig"] - }, - { - "label": "watch", - "command": "dotnet", - "type": "process", - "args": [ - "bin/Debug/netcoreapp2.1/isnd.dll", - "/property:GenerateFullPaths=true", - "/restore" - ], - "options": { - "env": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "problemMatcher": "$msCompile" - } - ] -} \ No newline at end of file