next-forge icon indicating copy to clipboard operation
next-forge copied to clipboard

Feature Request: Optional expo mobile app & packages

Open oldbettie opened this issue 3 months ago • 3 comments

Describe the solution you'd like Would be nice to add an optional package for an expo/react-native application. This would even be a nohoist package that is handled separately but can use the other packages for less code duplication.

Edit: turns out this is not overly complex to add.

  • from the root dir run: pnpm create expo apps/mobile
  • in turbo.json under build/outputs add , "node_modules/.cache/metro/**"
  • in launch.json add
    {
      "name": "Expo: debug client-side (app)",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:3006"
    },
  • in the new apps package.json add "dev": "expo start -p 3006" under scripts

This was enough to get expo running in the same pnpm dev command with everything else. I still need to test it more extensively

Edit 2.0 This breaks completely once you run pnpm i from the root of the repo. It hoists dependencies and I cant seem to get beyond this point or revert the change

oldbettie avatar Nov 17 '24 00:11 oldbettie