diff --git a/scripts/copy-to-folder.sh b/scripts/copy-to-folder.sh new file mode 100755 index 0000000..fde8684 --- /dev/null +++ b/scripts/copy-to-folder.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Useful for when you have created initialized a repo for your React component and have it cloned onto your +# machine. This script copies everything except the .git folder (and this script) to populate your initialized repo +# with the starter files. +# +# Arguments: +# $1 = path/to/your/repo/ + +rsync -av . $1 --exclude=.git --exclude=scripts/copy-to-folder.sh