Skip to content

Commit

Permalink
chore: Add launch and default build/test configs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshooaj committed Nov 8, 2023
1 parent 5603d7d commit 43a283f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell: Debug Module",
"type": "PowerShell",
"request": "launch",
"script": "Import-Module -Force ${workspaceFolder}/ImportExcel/ImportExcel.psd1",
},
{
"name": "PowerShell: Launch Current File",
"type": "PowerShell",
"request": "launch",
"script": "if ($null -eq (Get-Module ImportExcel)) { Import-Module ${workspaceFolder}/ImportExcel/ImportExcel.psd1 }; ${file}",
"cwd": "${cwd}"
}
]
}
31 changes: 31 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "${workspaceFolder}\\build.ps1 | Out-Null",
"type": "shell",
"args": [],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "silent"
}
},
{
"label": "test",
"command": "${workspaceFolder}\\RunTests.ps1",
"type": "shell",
"args": ["-NoIsolation"],
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"reveal": "always"
}
}
]
}

0 comments on commit 43a283f

Please sign in to comment.