build(sdlc): seed data, figures and rendered package for 23/09 feedback
This commit is contained in:
@@ -8,17 +8,22 @@ SOURCE_DIR="$ROOT_DIR/sdlc"
|
||||
DELIVERY_ROOT="$ROOT_DIR/sdlc-delivery"
|
||||
STAGING_DIR="$ROOT_DIR/.sdlc-delivery.staging"
|
||||
|
||||
# sdlc/ is generated output: the seed rebuilds every work product from the
|
||||
# controlled project data in scripts/sdlc-seed/ before anything is rendered.
|
||||
echo "Seeding work products from project data..."
|
||||
node "$SCRIPT_DIR/sdlc-seed/build.mjs"
|
||||
|
||||
if [[ ! -d "$TOOL_DIR/node_modules/playwright" ]]; then
|
||||
echo "Installing the local PDF renderer..."
|
||||
npm install --prefix "$TOOL_DIR"
|
||||
npx --prefix "$TOOL_DIR" playwright install chromium
|
||||
fi
|
||||
|
||||
# The Software Design figures are drawn in scripts/sdlc-seed/figures.mjs and
|
||||
# rasterised with the document font before the seed copies them into sdlc/.
|
||||
echo "Rendering Software Design figures..."
|
||||
node "$TOOL_DIR/render-figures.mjs"
|
||||
|
||||
# sdlc/ is generated output: the seed rebuilds every work product from the
|
||||
# controlled project data in scripts/sdlc-seed/ before anything is rendered.
|
||||
echo "Seeding work products from project data..."
|
||||
node "$SCRIPT_DIR/sdlc-seed/build.mjs"
|
||||
|
||||
rm -rf "$STAGING_DIR"
|
||||
mkdir -p "$STAGING_DIR"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user