Skip to content

Instantly share code, notes, and snippets.

@pedrouid
Created January 19, 2019 14:00
Show Gist options
  • Select an option

  • Save pedrouid/0d5dc05e70971f37a01a641798cce989 to your computer and use it in GitHub Desktop.

Select an option

Save pedrouid/0d5dc05e70971f37a01a641798cce989 to your computer and use it in GitHub Desktop.
Create React & React-Native Apps with react-scripts-ts
create-react-app-ts() {
if [ -n "$1" ]
then
create-react-app "$1" --scripts-version=react-scripts-ts
else
echo "Error: create-react-app-ts requires at least one argument (project_name)"
fi
cd "$1"
}
create-react-native-app-ts() {
if [ -n "$1" ]
then
create-react-native-app "$1" --scripts-version=react-native-scripts-ts
else
echo "Error: create-react-native-app-ts requires at least one argument (project_name)"
fi
cd "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment