forked from sefacan/Scrutor.AspNetCore
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
21 lines (21 loc) · 1.49 KB
/
Copy pathpackage.json
File metadata and controls
21 lines (21 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name": "easyscrutor",
"version": "1.0.0",
"description": "ASP.NET Core [Scrutor](https://github.com/khellang/Scrutor) extension for automatic registration of classes inherited from IScopedLifetime, ISelfScopedLifetime, ITransientLifetime, ISelfTransientLifetime, ISingletonLifetime, ISelfSingletonLifetime",
"main": "index.js",
"directories": {
"example": "examples",
"test": "tests"
},
"scripts": {
"test": "dotnet test",
"test:coverage": "dotnet test --collect:\"XPlat Code Coverage\" --settings coverlet.runsettings",
"coverage:report": "pwsh -Command \"if (!(Get-Command reportgenerator -ErrorAction SilentlyContinue)) { Write-Host 'Installing reportgenerator...' -ForegroundColor Yellow; dotnet tool install --global dotnet-reportgenerator-globaltool }; $report = Get-ChildItem -Path tests/EasyScrutor.Tests/TestResults -Recurse -Filter 'coverage.cobertura.xml' | Sort-Object LastWriteTime -Descending | Select-Object -First 1 -ExpandProperty FullName; if ($report) { reportgenerator -reports:$report -targetdir:coverage-report -reporttypes:Html; Write-Host 'Report: coverage-report/index.html' -ForegroundColor Green } else { Write-Host 'Run npm run test:coverage first' -ForegroundColor Red }\"",
"coverage:open": "pwsh -Command \"Start-Process coverage-report/index.html\"",
"coverage": "npm run test:coverage && npm run coverage:report && npm run coverage:open",
"format": "dotnet format EasyScrutor.sln"
},
"keywords": [],
"author": "",
"license": "ISC"
}