Skip to content

Commit 0aedc6c

Browse files
committed
feat: build-all command
1 parent 3680141 commit 0aedc6c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Justfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,38 @@ reset-nx: clean-nx clean-dist-nx install-nx
9797
# Reset turborepo directory
9898
reset-turborepo: clean-turborepo clean-dist-turborepo install-turborepo
9999
@echo "✓ Turborepo reset complete"
100+
101+
# Build all examples in every environment
102+
build-all:
103+
#!/usr/bin/env bash
104+
set -euo pipefail
105+
106+
echo "Building all vanilla examples..."
107+
cd vanilla/examples
108+
for d in */; do
109+
[ -d "$d" ] || continue
110+
echo "→ Building $d"
111+
(cd "$d" && pnpm build)
112+
done
113+
cd ../..
114+
115+
echo "Building all nx examples..."
116+
cd nx/examples
117+
for d in */; do
118+
[ -d "$d" ] || continue
119+
echo "→ Building $d"
120+
(cd "$d" && pnpm build)
121+
done
122+
cd ../..
123+
124+
echo "Building all turborepo examples..."
125+
cd turborepo/examples
126+
for d in */; do
127+
[ -d "$d" ] || continue
128+
echo "→ Building $d"
129+
(cd "$d" && pnpm build)
130+
done
131+
cd ../..
132+
133+
echo "✓ All examples built successfully"
134+

0 commit comments

Comments
 (0)