Skip to content

Commit 2698faf

Browse files
committed
chore(scripts): revert build test apps back to cp
1 parent e47f1e7 commit 2698faf

File tree

4 files changed

+8
-44
lines changed

4 files changed

+8
-44
lines changed

packages/angular/test/build.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,10 @@ mkdir -p $BUILD_DIR
2929

3030
# Copy base template first
3131
echo "Copying base application..."
32-
rsync -a --exclude='.git' --exclude='node_modules' $FULL_BASE_DIR $BUILD_APP_DIR
32+
cp -R $FULL_BASE_DIR $BUILD_APP_DIR
3333

3434
# Copy version-specific files (overrides base template)
3535
echo "Copying application version..."
36-
rsync -a --exclude='.git' --exclude='node_modules' $FULL_APP_DIR $BUILD_APP_DIR
37-
38-
# Remove files that don't exist in either source directory
39-
echo "Cleaning up removed files..."
40-
find $BUILD_APP_DIR -type f -not -path "*/node_modules/*" -not -path "*/.git/*" | while read file; do
41-
rel_path=${file#$BUILD_APP_DIR}
42-
if [ ! -f "${FULL_BASE_DIR}${rel_path}" ] && [ ! -f "${FULL_APP_DIR}${rel_path}" ]; then
43-
rm "$file"
44-
fi
45-
done
36+
cp -R $FULL_APP_DIR $BUILD_APP_DIR
4637

4738
echo "Copied test app files for ${APP_DIR}"

packages/react-router/test/build.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,10 @@ mkdir -p $BUILD_DIR
2929

3030
# Copy base template first
3131
echo "Copying base application..."
32-
rsync -a --exclude='.git' --exclude='node_modules' $FULL_BASE_DIR $BUILD_APP_DIR
32+
cp -R $FULL_BASE_DIR $BUILD_APP_DIR
3333

3434
# Copy version-specific files (overrides base template)
3535
echo "Copying application version..."
36-
rsync -a --exclude='.git' --exclude='node_modules' $FULL_APP_DIR $BUILD_APP_DIR
37-
38-
# Remove files that don't exist in either source directory
39-
echo "Cleaning up removed files..."
40-
find $BUILD_APP_DIR -type f -not -path "*/node_modules/*" -not -path "*/.git/*" | while read file; do
41-
rel_path=${file#$BUILD_APP_DIR}
42-
if [ ! -f "${FULL_BASE_DIR}${rel_path}" ] && [ ! -f "${FULL_APP_DIR}${rel_path}" ]; then
43-
rm "$file"
44-
fi
45-
done
36+
cp -R $FULL_APP_DIR $BUILD_APP_DIR
4637

4738
echo "Copied test app files for ${APP_DIR}"

packages/react/test/build.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,10 @@ mkdir -p $BUILD_DIR
2929

3030
# Copy base template first
3131
echo "Copying base application..."
32-
rsync -a --exclude='.git' --exclude='node_modules' $FULL_BASE_DIR $BUILD_APP_DIR
32+
cp -R $FULL_BASE_DIR $BUILD_APP_DIR
3333

3434
# Copy version-specific files (overrides base template)
3535
echo "Copying application version..."
36-
rsync -a --exclude='.git' --exclude='node_modules' $FULL_APP_DIR $BUILD_APP_DIR
37-
38-
# Remove files that don't exist in either source directory
39-
echo "Cleaning up removed files..."
40-
find $BUILD_APP_DIR -type f -not -path "*/node_modules/*" -not -path "*/.git/*" | while read file; do
41-
rel_path=${file#$BUILD_APP_DIR}
42-
if [ ! -f "${FULL_BASE_DIR}${rel_path}" ] && [ ! -f "${FULL_APP_DIR}${rel_path}" ]; then
43-
rm "$file"
44-
fi
45-
done
36+
cp -R $FULL_APP_DIR $BUILD_APP_DIR
4637

4738
echo "Copied test app files for ${APP_DIR}"

packages/vue/test/build.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,10 @@ mkdir -p $BUILD_DIR
2929

3030
# Copy base template first
3131
echo "Copying base application..."
32-
rsync -a --exclude='.git' --exclude='node_modules' $FULL_BASE_DIR $BUILD_APP_DIR
32+
cp -R $FULL_BASE_DIR $BUILD_APP_DIR
3333

3434
# Copy version-specific files (overrides base template)
3535
echo "Copying application version..."
36-
rsync -a --exclude='.git' --exclude='node_modules' $FULL_APP_DIR $BUILD_APP_DIR
37-
38-
# Remove files that don't exist in either source directory
39-
echo "Cleaning up removed files..."
40-
find $BUILD_APP_DIR -type f -not -path "*/node_modules/*" -not -path "*/.git/*" | while read file; do
41-
rel_path=${file#$BUILD_APP_DIR}
42-
if [ ! -f "${FULL_BASE_DIR}${rel_path}" ] && [ ! -f "${FULL_APP_DIR}${rel_path}" ]; then
43-
rm "$file"
44-
fi
45-
done
36+
cp -R $FULL_APP_DIR $BUILD_APP_DIR
4637

4738
echo "Copied test app files for ${APP_DIR}"

0 commit comments

Comments
 (0)