Skip to content

Equivalent of react-native-cli #62

Closed
@necolas

Description

@necolas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions