Created
January 19, 2019 14:00
-
-
Save pedrouid/0d5dc05e70971f37a01a641798cce989 to your computer and use it in GitHub Desktop.
Create React & React-Native Apps with react-scripts-ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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