Skip to content
This repository has been archived by the owner. It is now read-only.

Create script to copy starter files to another folder. #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions scripts/copy-to-folder.sh
Original file line number Diff line number Diff line change
@@ -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