mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-10 19:28:41 +00:00
14 lines
242 B
Bash
14 lines
242 B
Bash
#!/bin/bash
|
|
|
|
SEARCH_DIR="./tests"
|
|
|
|
FILES=$(find $SEARCH_DIR -type f -name "*Test.js")
|
|
|
|
for FILE in $FILES; do
|
|
INPUT_PATH="$FILE"
|
|
|
|
OUT_PATH="${INPUT_PATH/Test.js/Spec.js}"
|
|
|
|
npx esbuild $INPUT_PATH --bundle --outfile=$OUT_PATH
|
|
done
|