Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-null committed Nov 11, 2022
0 parents commit 0c4cfe6
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.nupkg
*.dll
21 changes: 21 additions & 0 deletions .nuspec/Spe.Abstractions/Spe.Abstractions.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<package >
<metadata>
<id>Spe.Abstractions</id>
<version>$version</version>
<title>Sitecore PowerShell Extensions</title>
<authors>Alan Płócieniak</authors>
<owners>Adam Najmanowicz, Michael West</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">MIT</license>
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
<icon>icon.png</icon>
<projectUrl>https://github.com/SitecorePowerShell/Console</projectUrl>
<description>A command line and scripting tool built for the Sitecore platform.</description>
<copyright>© 2010-$YTD Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions</copyright>
<tags>Sitecore PowerShell</tags>
<dependencies>
<group targetFramework=".NETFramework4.5.2" />
</dependencies>
</metadata>
</package>
Binary file added .nuspec/Spe.Abstractions/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions .nuspec/Spe/Spe.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<package >
<metadata>
<id>Spe</id>
<version>$version</version>
<title>Sitecore PowerShell Extensions</title>
<authors>Alan Płócieniak</authors>
<owners>Adam Najmanowicz, Michael West</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">MIT</license>
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
<icon>icon.png</icon>
<projectUrl>https://github.com/SitecorePowerShell/Console</projectUrl>
<description>A command line and scripting tool built for the Sitecore platform.</description>
<copyright>© 2010-$YTD Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions</copyright>
<tags>Sitecore PowerShell</tags>
<dependencies>
<group targetFramework=".NETFramework4.5.2">
<dependency id="Spe.Abstractions" version="$version" />
</group>
</dependencies>
</metadata>
</package>
Binary file added .nuspec/Spe/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SitecorePowerShell.NuGet

Packages available via [**nuget.org**](https://www.nuget.org)

- [https://www.nuget.org/packages/Spe](https://www.nuget.org/packages/Spe)
- [https://www.nuget.org/packages/Spe.Abstractions](https://www.nuget.org/packages/Spe.Abstractions)

20 changes: 20 additions & 0 deletions pack.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$version = "6.3"
function Expand-Variables {
param (
[Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true )]
$File
)
$YTD = (Get-Date).Year
$template = Get-Content $File.FullName
$template = $template.Replace("`$version", $version)
$template = $template.Replace("`$YTD", $YTD)
$template | Set-Content -Path $File.FullName
}

".\.nuspec\Spe", ".\.nuspec\Spe.Abstractions" | % {
Push-Location $_
Get-Item *.nupkg | Remove-Item
Get-Item *.nuspec | Expand-Variables
nuget pack
Pop-Location
}
6 changes: 6 additions & 0 deletions scripts/target.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Clear-Host
$path = 'C:\repo\SitecorePowerShell\src\Spe\bin\Debug\Spe.dll'
[Reflection.Assembly]::ReflectionOnlyLoadFrom($path).CustomAttributes | `
? { $_.AttributeType.Name -eq "TargetFrameworkAttribute" } | `
Select-Object -ExpandProperty ConstructorArguments | `
Select-Object -ExpandProperty value

0 comments on commit 0c4cfe6

Please sign in to comment.