chore: init providers package

This commit is contained in:
Adrian Castro
2024-02-04 20:41:56 +01:00
parent a3f184979e
commit 8593d76984
5 changed files with 213 additions and 30 deletions

View File

@@ -2,7 +2,7 @@
## About
It uses [Turborepo](https://turborepo.org) and contains:
This repository uses [Turborepo](https://turborepo.org) and contains:
```text
.github
@@ -19,7 +19,9 @@ apps
└─ Typesafe API calls using tRPC
packages
├─ tmdb
└─ Typesafe API calls to The Movie Database
| └─ Typesafe API calls to The Movie Database
└─ providers
└─ Typesafe API calls to the video providers
tooling
├─ eslint
| └─ shared, fine-grained, eslint presets
@@ -31,35 +33,9 @@ tooling
└─ shared tsconfig you can extend from
```
### Configure Expo `dev`-script
## Getting started
#### Use iOS Simulator
1. Make sure you have XCode and XCommand Line Tools installed [as shown on expo docs](https://docs.expo.dev/workflow/ios-simulator).
> **NOTE:** If you just installed XCode, or if you have updated it, you need to open the simulator manually once. Run `npx expo start` in the root dir, and then enter `I` to launch Expo Go. After the manual launch, you can run `pnpm dev` in the root directory.
```diff
+ "dev": "expo start --ios",
```
2. Run `pnpm dev` at the project root folder.
#### Use Android Emulator
1. Install Android Studio tools [as shown on expo docs](https://docs.expo.dev/workflow/android-studio-emulator).
2. Change the `dev` script at `apps/expo/package.json` to open the Android emulator.
```diff
+ "dev": "expo start --android",
```
3. Run `pnpm dev` at the project root folder.
> **TIP:** It might be easier to run each app in separate terminal windows so you get the logs from each app separately. This is also required if you want your terminals to be interactive, e.g. to access the Expo QR code. You can run `pnpm --filter expo dev` and `pnpm --filter nextjs dev` to run each app in a separate terminal window.
### 3. When it's time to add a new package
### When it's time to add a new package
To add a new package, simply run `pnpm turbo gen init` in the monorepo root. This will prompt you for a package name as well as if you want to install any dependencies to the new package (of course you can also do this yourself later).