Starter kit for universal full–fledged React apps. One stack for browser, mobile, server.
Originally based on Este.js
- node.js Node 6+, install via nvm highly recommended
- gulp
yarn global add gulp - yarn
- react-native-cli
yarn global add react-native-cli
- install dependencies
yarn
- run
gulp - point your browser to localhost:3000
- run
gulp ios
- run
gulp android
gulp eslint --fixfix fixable eslint issuesgulp messages-exportexport messages for translators (withMISSINGprefix when untranslated)gulp messages-checkcheck missing and unused translationsgulp clean-ios/gulp clean-androidclean ios/android buildyarn run build-size-checkdisplay info about latest buildyarn run devtoolsstart standalone React devtools for native appsrm -fr $TMPDIR/react-*reset native packager cachewatchman watch-del-allclear watchman watches
gulp test-e2e [-p] -d [ios|android|browser|i|a|b] [-s ${folderName}]start E2E tests for selected platform, possibly in production modeandroid avd &open AVD manager to start Android simulator
More info in separate document E2E-TESTING.md
Look at Next.js github, not just the old blogpost.
Next.js give us:
- server side rendering with automatic code splitting
- prefetching pages
- nice documentation and many examples
Almost everything in Next.js is configurable, but the folders structure not yet. So the pages folder is temporally in src, although it should goes inside browser folder. The pages folder will be moved as soon as this PR #936 will be merged in Next.js.
-
yarn run storybook-webrun Storybook for Web -
point your browser to localhost:9001
-
yarn run storybook-nativerun Storybook for native -
We can show react-native components in browser due to the library react-native-web
-
point your browser to localhost:9002
-
create stories alongside components (eg.
Button.stories.jsforButton.js) -
Storybook watches
/src/browserdirectory for web app and/src/nativefor native app, and rebuilds itself as you touch any*.stories.js
gulp buildbuild app for productiongulp startrun app in production modenpm testrun all checks and tests
- create branch in your project's repo (e.g.
devstack-update) and push it - add devstack as remote to your project (
git remote add devstack https://github.com/actum/devstack.git) - fetch remote (
git fetch devstack) - merge branch from devstack remote to
devstack-update(use--allow-unrelated-historiesif necessary) - merge your project's
mastertodevstack-update - solve eventual conflicts
- create PR from
devstack-updateto yourmaster