Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonthomp/react-native-web-expo-lerna-boilerplate
A boilerplate lerna repository for building react-native (expo) and react-native-web apps.
https://github.com/jonthomp/react-native-web-expo-lerna-boilerplate
babel expo lerna lernajs react react-native react-native-web reactjs styled-components webpack
Last synced: 29 days ago
JSON representation
A boilerplate lerna repository for building react-native (expo) and react-native-web apps.
- Host: GitHub
- URL: https://github.com/jonthomp/react-native-web-expo-lerna-boilerplate
- Owner: jonthomp
- Created: 2019-03-17T16:22:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T12:00:35.000Z (about 1 year ago)
- Last Synced: 2023-12-15T13:24:35.954Z (about 1 year ago)
- Topics: babel, expo, lerna, lernajs, react, react-native, react-native-web, reactjs, styled-components, webpack
- Language: JavaScript
- Homepage:
- Size: 188 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-web-expo-lerna-boilerplate
# Features
- react-native (expo)
- react-native-web
- stand-alone shared components/functions package
- lerna
- styled-components
- webpack 4
- babel 7
- prettier# Setup
1. Git clone this repository
`[email protected]:jonthomp/react-native-web-expo-lerna-boilerplate.git`
2. Name your packages
Modify the `name` in each of the `package.json` files:
- `./package.json`
- `./packages/common/package.json`
- `./packages/web/package.json`
- `./packages/native/package.json`3. Rename the `common` dependencies
Update the `@jonthompson/renaweexlebo-common` dependencies to match the name of your common package:
- `./packages/web/package.json`
- `./packages/native/package.json`4. Rename the `common` package in the build configs:
- `./packages/web/webpack.config.json`
Replace the `@jonthompson/renaweexlebo-common` resolve alias with your common package name.
- `./packages/native/rn-cli/config/json`
Replace the `@jonthompson/renaweexlebo-common` resolver extraNodeModules with your common package name.
5. Bootstrap `lerna`
`npx lerna bootstrap`