From 46adc439eb3489f789c8f07cf0b6ed9fd3f2ca8d Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Fri, 19 May 2017 13:40:45 -0700 Subject: [PATCH] Create script to copy starter files to another folder. This is useful for when you want to create a repo for your new npm component, clone it down, and then bring in the starter files. --- scripts/copy-to-folder.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/copy-to-folder.sh 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