[object Object]

← back to Dw Marketing Reels

chore: lint, refactor (hoist SLUG), doc outroBig, v0.2.0 (session close)

2c9022809394921e2f770274801b2ec2cdc4d8f9 · 2026-07-13 00:44:18 -0700 · Steve Abrams

Files touched

Diff

commit 2c9022809394921e2f770274801b2ec2cdc4d8f9
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Jul 13 00:44:18 2026 -0700

    chore: lint, refactor (hoist SLUG), doc outroBig, v0.2.0 (session close)
---
 package.json           | 2 +-
 scripts/build-reel.mjs | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/package.json b/package.json
index 6b67ff0..72fbf67 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "dw-marketing-reels",
-  "version": "0.1.0",
+  "version": "0.2.0",
   "private": true,
   "type": "module",
   "description": "DW Marketing — auto-generated New Arrivals reels (HyperFrames) + auth-gated console",
diff --git a/scripts/build-reel.mjs b/scripts/build-reel.mjs
index 5c8e637..30822c5 100644
--- a/scripts/build-reel.mjs
+++ b/scripts/build-reel.mjs
@@ -12,6 +12,7 @@ const WS = join(ROOT, 'hf-workspace');
 const N = Number(process.env.REEL_COUNT || 6);          // products per reel
 const PER = Number(process.env.REEL_SECS || 2.4);        // seconds per product
 const INTRO = 2.0, OUTRO = 2.6;
+const SLUG = (process.env.REEL_SLUG || 'new-arrivals').replace(/[^a-z0-9-]+/gi, '-').toLowerCase(); // output filename prefix
 
 // Reel theming — all env-overridable, defaulting to the generic "New Arrivals" reel.
 // A themed run (e.g. Phillipe Romano corks) sets these to rebrand the cards + caption
@@ -21,7 +22,7 @@ const THEME = {
   title:        process.env.REEL_TITLE        || 'Just In',
   subtitle:     process.env.REEL_SUBTITLE     || '',              // '' → "Designer Wallcoverings · <Month Year>"
   outroKicker:  process.env.REEL_OUTRO_KICKER || 'Shop the collection',
-  outroBig:     process.env.REEL_OUTRO_BIG    || 'Designer<br/>Wallcoverings',
+  outroBig:     process.env.REEL_OUTRO_BIG    || 'Designer<br/>Wallcoverings', // raw HTML by design (supports <br/>); operator-set only, not user input
   url:          process.env.REEL_URL          || 'designerwallcoverings.com',
   captionLead:  process.env.REEL_CAPTION_LEAD || 'New arrivals just landed ✨',
   captionTail:  process.env.REEL_CAPTION_TAIL || 'Discover the latest wallcoverings — shop the collection at designerwallcoverings.com 🔗',
@@ -197,8 +198,7 @@ ${anim}
 
   // move newest mp4 to reels/  (REEL_SLUG names themed reels; default keeps new-arrivals)
   const stamp = new Date().toISOString().slice(0, 16).replace(/[:T]/g, '-');
-  const slug = (process.env.REEL_SLUG || 'new-arrivals').replace(/[^a-z0-9-]+/gi, '-').toLowerCase();
-  const outName = `${slug}-${stamp}.mp4`;
+  const outName = `${SLUG}-${stamp}.mp4`;
   const found = findMp4(WS);
   if (found) {
     mkdirSync(join(ROOT, 'reels'), { recursive: true });

← 582f1f1 Multi-account Instagram picker: DW-family account registry +  ·  back to Dw Marketing Reels  ·  docs: publish-social — reels now public (media blocker clear 2db6c90 →