Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equivalent of react-native-cli #62

Closed
necolas opened this issue Dec 25, 2015 · 5 comments
Closed

Equivalent of react-native-cli #62

necolas opened this issue Dec 25, 2015 · 5 comments

Comments

@necolas
Copy link
Owner

necolas commented Dec 25, 2015

https://facebook.github.io/react-native/docs/getting-started.html#quick-start

React Native has relatively simpler setup compared to contemporary React-based web apps. At the expense of absolute customization comes better ecosystem consistency and fewer barriers to entry. This is something we're intent of improving internally at Twitter too, because we want someone to be able to start building their web app ASAP, rather than doing setup work and making divergent choices.

A web equivalent might include:

  • react-native-web
  • Babel 6 (and initial config)
  • Webpack + middleware (and initial config – simpler without css loaders)
  • ESLint
  • react-router + history
  • express

Probably a test setup for client and server code? I wrote a bundled package for client-side testing at Twitter for this. One dependency + ~5 lines of code across 2 files and you get: karma, mocha (we go with the tdd ui), sinon, all browsers launchers (inc. browserstack), phantom, jsdom, rerunning of changed tests, and the ability to bundle subsets of your tests. Don't think we want to get into integration testing though.

@mattapperson
Copy link

Hapi > express IMHO

@genxium
Copy link

genxium commented Jul 30, 2016

Hope I understand this issue correctly. I'm working on a small project which tries to provide scripts for creating a mixed react-native + react-native-web project here and comments are welcome :)

@RangerMauve
Copy link

Looking at this tutorial it seems that the things needed to do that are different from react-web would be to install React/React-Dom, Webpack, and a dev server. A react-native-web CLI would be useful if it included those things as dependencies and provided a react-native-web run-web command, or maybe some sort of wrapper that would relay android/ios react-native commands back to the original, while treating web related ones differently.

@RangerMauve
Copy link

Maybe create-react-app would be a good place to start because they're working on having react-native-web be a first class citizen.

@necolas
Copy link
Owner Author

necolas commented Aug 17, 2016

I think that's a good idea! Going to close this. Thanks

@necolas necolas closed this as completed Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants