Skip to content

Commit

Permalink
fix: Palette filename fix ( Fixes #89 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Oct 19, 2024
1 parent 1eb3da2 commit d587477
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Build/4bitcss.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $allColorSchemes = @()
$brightColorSchemes = @()
$darkColorSchemes = @()

$allPalletes = [Ordered]@{}
$allPalettes = [Ordered]@{}

# Walk thru each json file of a color scheme
foreach ($jsonFile in $jsonFiles) {
Expand Down Expand Up @@ -98,7 +98,7 @@ foreach ($jsonFile in $jsonFiles) {
if (-not $colorSchemeFileName) { continue }
$distinctColors = @($jsonObject.psobject.Properties.value) -match '^#[0-9a-fA-F]{6}' | Select-Object -Unique

$allPalletes[$colorSchemeFileName] = $jsonObject
$allPalettes[$colorSchemeFileName] = $jsonObject
# If the name wasn't there, continue.
if (-not $jsonObject.Name) { continue }
# If it wasn't legal, continue.
Expand Down Expand Up @@ -196,13 +196,13 @@ Get-Item -Path $allDarkSchemesPath
Get-Item -Path $allDarkSchemesPath |
Copy-Item -Destination $DataPath -Force -PassThru

$allPalletesPath = Join-Path $docsPath "Palletes.json"
$allPalletes |
$allPalettesPath = Join-Path $docsPath "Palettes.json"
$allPalettes |
ConvertTo-Json -Depth 4 -Compress |
Set-Content -Path $allPalletesPath
Set-Content -Path $allPalettesPath

Get-Item -Path $allPalletesPath
Get-Item -Path $allPalletesPath |
Get-Item -Path $allPalettesPath
Get-Item -Path $allPalettesPath |
Copy-Item -Destination $DataPath -Force -PassThru

$4bitJS = Export-4BitJS -ColorSchemeName $allColorSchemes -DarkColorSchemeName $darkColorSchemes -LightColorSchemeName $LightColorSchemeName
Expand Down
1 change: 0 additions & 1 deletion docs/Palletes.json

This file was deleted.

1 change: 0 additions & 1 deletion docs/_data/Palletes.json

This file was deleted.

0 comments on commit d587477

Please sign in to comment.