Skip to content

Commit

Permalink
Moving Splatter.PSSVG.ps1 into /Build (re #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed May 9, 2023
1 parent f3a2ee2 commit 6e5e545
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Splatter.PSSVG.ps1 → Build/Splatter.PSSVG.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#requires -Module PSSVG

Push-Location ($PSScriptRoot | Split-Path)

$psChevron =
svg.symbol -Id psChevron -Content @(
Expand All @@ -12,7 +14,7 @@ $psChevron =
) -join ' ')
) -ViewBox 100, 100 -PreserveAspectRatio $false

$assetsPath = Join-Path $PSScriptRoot Assets
$assetsPath = Join-Path $pwd Assets

if (-not (Test-Path $assetsPath)) {
$null = New-item -ItemType Directory -Path $assetsPath
Expand Down Expand Up @@ -59,3 +61,4 @@ svg -ViewBox 1920, 1080 @(
) -FontSize 80em -FontWeight 500
) -OutputPath (Join-Path $assetsPath '[email protected]')

Pop-Location

0 comments on commit 6e5e545

Please sign in to comment.