-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAnalyzeMe.ps1
53 lines (38 loc) · 1.19 KB
/
AnalyzeMe.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<#
#no generate docusaurus documentation
Get-ChildItem -Path "docs" -File -Recurse |
Where-Object { $_.Name -ne "ico.png"} |
Remove-Item
Get-ChildItem -Path "docs" -Recurse |
Where-Object { $_.Name -ne "ico.png"} |
Remove-Item -Recurse
#>
$currentPath = Get-Location
$docs = Join-Path $currentPath "docs"
$destination = Join-Path $currentPath "src"
$destination = Join-Path $destination "documentation1"
# do not generate the documentation of docusaurus
# Remove-Item $destination -Recurse
Push-Location .
Set-Location -Path "src"
Set-Location -Path "NetPackageAnalyzer"
dotnet build
# dotnet new tool-manifest
dotnet tool uninstall netpackageanalyzerconsole
dotnet tool update netpackageanalyzerconsole
Write-Host "Current path: $(Get-Location)"
# do not generate the documentation of docusaurus
<#
Push-Location .
dotnet PackageAnalyzer generateFiles -wg Docusaurus --where $destination
Set-Location $destination
npm i
npm run build
$destination = Join-Path $destination "build"
Set-Location $destination
Copy-Item -Path .\* -Destination $docs -Recurse
Pop-Location
Write-Host "Current path: $(Get-Location)"
#>
dotnet PackageAnalyzer generateFiles -wg HtmlSummary --where $docs
Pop-Location