This repository has been archived by the owner on Dec 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Add shortcut flag to CRNA for using reason-scripts #4
Comments
Do we also want to do that for the TS, cljs, and scalajs forks? |
@dikaiosune - if they have their own react-native-scripts then possibly! |
Can't find the others though. |
A few proposals:
const getScriptVersion = arg => {
const normalized = String(arg).toLowerCase();
switch(normalized) {
case 'reason':
case 'reasonml':
return 'reason-react-native-scripts'
case 'typescript':
case 'ts':
return 'react-native-scripts-ts'
default: return arg
}
};
createApp(commands[0], !!argv.verbose, getScriptVersion(argv['with'])).then(() => {}); The following: This could also be implemented on top of
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
create-react-native-app MyProject --scripts-version reason-react-native-scripts
is fairly verbose and difficult to remember.We could simplify this to
create-react-native-app MyProject --reason
The text was updated successfully, but these errors were encountered: