Build vault, memory, and Quartz operating surfaces
This commit is contained in:
parent
36783c14be
commit
6b62f17ccf
28 changed files with 1383 additions and 0 deletions
51
scripts/quartz/quartz.ps1
Normal file
51
scripts/quartz/quartz.ps1
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
param(
|
||||
[ValidateSet("build", "dev")]
|
||||
[string]$Command = "dev"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$repoRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
|
||||
$sharedQuartzRoot = if ($env:GAMECULT_QUARTZ_ROOT) {
|
||||
$env:GAMECULT_QUARTZ_ROOT
|
||||
} else {
|
||||
Join-Path (Split-Path -Parent $repoRoot) "GameCult-Quartz"
|
||||
}
|
||||
$portableNodeRoot = Join-Path $repoRoot ".tools\node-v24.15.0-win-x64"
|
||||
$portableNode = Join-Path $portableNodeRoot "node.exe"
|
||||
|
||||
# Prefer the bundled Windows runtime when present, then fall back to Node on PATH.
|
||||
if (Test-Path $portableNode) {
|
||||
$node = $portableNode
|
||||
$env:PATH = "$portableNodeRoot;$env:PATH"
|
||||
} else {
|
||||
$nodeCommand = Get-Command node -ErrorAction SilentlyContinue
|
||||
if (-not $nodeCommand) {
|
||||
throw "node was not found. Install Node.js or restore the portable runtime under .tools."
|
||||
}
|
||||
|
||||
$node = $nodeCommand.Source
|
||||
}
|
||||
|
||||
$env:npm_config_cache = Join-Path $repoRoot ".npm-cache"
|
||||
|
||||
if (-not (Test-Path $sharedQuartzRoot)) {
|
||||
throw "GameCult-Quartz was not found at '$sharedQuartzRoot'. Clone it beside this repo or set GAMECULT_QUARTZ_ROOT."
|
||||
}
|
||||
|
||||
$buildScript = Join-Path $sharedQuartzRoot "scripts\build-site.mjs"
|
||||
|
||||
if (-not (Test-Path $buildScript)) {
|
||||
throw "GameCult-Quartz build script was not found at '$buildScript'."
|
||||
}
|
||||
|
||||
$scriptArgs = @(
|
||||
$buildScript,
|
||||
$Command,
|
||||
"--siteRoot", $repoRoot,
|
||||
"--overlayDir", "site",
|
||||
"--contentDir", "Kalsa",
|
||||
"--outputDir", "quartz-site/public"
|
||||
)
|
||||
|
||||
& $node @scriptArgs
|
||||
Loading…
Reference in a new issue