Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sync-design-system.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

Wend vendors a COPY of the design-system into Wend.Api/wwwroot/design-system so the app is
self-contained: no build step, and it works on any clone without anyone re-running anything.
This script re-copies it from the canonical source whenever the design-system is updated.
This script re-copies it from the source of truth whenever the design-system is updated.

Only the person who owns the canonical design-system needs to run this (Malin) — everyone
Only the person who owns the source-of-truth design-system needs to run this (Malin) — everyone
else just gets the committed copy via `git pull`. After running, review the diff and commit.

Usage:
./sync-design-system.ps1
./sync-design-system.ps1 -Source 'D:\path\to\design-system'
#>
param(
# Canonical design-system folder (the single source of truth).
[string]$Source = 'C:\Users\Nugget\Documents\Development\workbench\libraries\design-system'
# The design-system source-of-truth folder.
[string]$Source = 'C:\Users\Nugget\Documents\Development\GitHub\repos\workbench\libraries\design-system'
)

$ErrorActionPreference = 'Stop'
Expand Down