Skip to content

Commit 0c4cfe6

Browse files
committed
Initial commit
0 parents  commit 0c4cfe6

File tree

8 files changed

+79
-0
lines changed

8 files changed

+79
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.nupkg
2+
*.dll
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package >
3+
<metadata>
4+
<id>Spe.Abstractions</id>
5+
<version>$version</version>
6+
<title>Sitecore PowerShell Extensions</title>
7+
<authors>Alan Płócieniak</authors>
8+
<owners>Adam Najmanowicz, Michael West</owners>
9+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
10+
<license type="expression">MIT</license>
11+
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
12+
<icon>icon.png</icon>
13+
<projectUrl>https://github.com/SitecorePowerShell/Console</projectUrl>
14+
<description>A command line and scripting tool built for the Sitecore platform.</description>
15+
<copyright>© 2010-$YTD Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions</copyright>
16+
<tags>Sitecore PowerShell</tags>
17+
<dependencies>
18+
<group targetFramework=".NETFramework4.5.2" />
19+
</dependencies>
20+
</metadata>
21+
</package>

.nuspec/Spe.Abstractions/icon.png

41.1 KB
Loading

.nuspec/Spe/Spe.nuspec

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package >
3+
<metadata>
4+
<id>Spe</id>
5+
<version>$version</version>
6+
<title>Sitecore PowerShell Extensions</title>
7+
<authors>Alan Płócieniak</authors>
8+
<owners>Adam Najmanowicz, Michael West</owners>
9+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
10+
<license type="expression">MIT</license>
11+
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
12+
<icon>icon.png</icon>
13+
<projectUrl>https://github.com/SitecorePowerShell/Console</projectUrl>
14+
<description>A command line and scripting tool built for the Sitecore platform.</description>
15+
<copyright>© 2010-$YTD Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions</copyright>
16+
<tags>Sitecore PowerShell</tags>
17+
<dependencies>
18+
<group targetFramework=".NETFramework4.5.2">
19+
<dependency id="Spe.Abstractions" version="$version" />
20+
</group>
21+
</dependencies>
22+
</metadata>
23+
</package>

.nuspec/Spe/icon.png

41.1 KB
Loading

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SitecorePowerShell.NuGet
2+
3+
Packages available via [**nuget.org**](https://www.nuget.org)
4+
5+
- [https://www.nuget.org/packages/Spe](https://www.nuget.org/packages/Spe)
6+
- [https://www.nuget.org/packages/Spe.Abstractions](https://www.nuget.org/packages/Spe.Abstractions)
7+

pack.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
$version = "6.3"
2+
function Expand-Variables {
3+
param (
4+
[Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true )]
5+
$File
6+
)
7+
$YTD = (Get-Date).Year
8+
$template = Get-Content $File.FullName
9+
$template = $template.Replace("`$version", $version)
10+
$template = $template.Replace("`$YTD", $YTD)
11+
$template | Set-Content -Path $File.FullName
12+
}
13+
14+
".\.nuspec\Spe", ".\.nuspec\Spe.Abstractions" | % {
15+
Push-Location $_
16+
Get-Item *.nupkg | Remove-Item
17+
Get-Item *.nuspec | Expand-Variables
18+
nuget pack
19+
Pop-Location
20+
}

scripts/target.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Clear-Host
2+
$path = 'C:\repo\SitecorePowerShell\src\Spe\bin\Debug\Spe.dll'
3+
[Reflection.Assembly]::ReflectionOnlyLoadFrom($path).CustomAttributes | `
4+
? { $_.AttributeType.Name -eq "TargetFrameworkAttribute" } | `
5+
Select-Object -ExpandProperty ConstructorArguments | `
6+
Select-Object -ExpandProperty value

0 commit comments

Comments
 (0)