expo-devbox 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +21 -2
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Brent Vatne
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ Build and test your Expo app's native iOS code on an EAS macOS worker instead of
|
|
|
4
4
|
|
|
5
5
|
It is for work that rebuilds native code over and over, such as an agent iterating on an [Expo module](https://docs.expo.dev/modules/overview/), when those rebuilds are too heavy for your machine.
|
|
6
6
|
|
|
7
|
+
**iOS only for now.** Android support, on an EAS Linux worker with the Android Emulator, will be added to this tool shortly.
|
|
8
|
+
|
|
7
9
|
```
|
|
8
10
|
$ bunx expo-devbox build
|
|
9
11
|
BUILD SUCCEEDED in 5s
|
|
@@ -15,6 +17,23 @@ Native log from this launch (system libraries excluded):
|
|
|
15
17
|
Screenshot copied to .devbox/screenshot.png
|
|
16
18
|
```
|
|
17
19
|
|
|
20
|
+
> [!NOTE]
|
|
21
|
+
> SSH support for EAS Workflows is coming soon (`eas workflow:run --ssh` and `eas workflow:ssh`). It will cover about half of what this tool does: the SSH server, the Cloudflare tunnel, finding the worker, and ending idle sessions. The other half stays: syncing your files, incremental builds, launching the app and checking its logs, crash reports, `devbox.json`, and the instructions for coding agents. When workflow SSH ships, `expo-devbox` will use it.
|
|
22
|
+
|
|
23
|
+
## Set it up with your coding agent
|
|
24
|
+
|
|
25
|
+
Paste this into your coding agent, in your Expo app:
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
Set up expo-devbox (https://www.npmjs.com/package/expo-devbox) in this Expo app, so that you build and test native iOS code on an EAS macOS worker instead of this machine.
|
|
29
|
+
|
|
30
|
+
1. Check the requirements: bun 1.3 or later, eas-cli logged in (`eas whoami`), and cloudflared (`brew install cloudflared` if it is missing). If the app has no EAS project ID in its app config, run `eas init`.
|
|
31
|
+
2. Run `bunx expo-devbox init` in the app's root directory.
|
|
32
|
+
3. Read the "Native iOS builds on EAS (expo-devbox)" section that init added to AGENTS.md or CLAUDE.md, and follow it from now on.
|
|
33
|
+
4. If the app logs a line when it is ready or when a self-test passes or fails, set `waitFor` and `failOn` in devbox.json to regular expressions for those lines.
|
|
34
|
+
5. Ask me before you run `bunx expo-devbox start`: a session bills EAS macOS minutes while it runs. Then run `bunx expo-devbox build`, tell me the result, and run `bunx expo-devbox stop` when we are done.
|
|
35
|
+
```
|
|
36
|
+
|
|
18
37
|
## Requirements
|
|
19
38
|
|
|
20
39
|
- An Expo app linked to an EAS project (`eas init`), on a plan with macOS workflow minutes. A session holds one macOS concurrency slot and is billed for as long as it runs. Check your plan's price and job time limits.
|
|
@@ -105,11 +124,11 @@ The workflow runs one custom job on `macos-large` in the `development` environme
|
|
|
105
124
|
|
|
106
125
|
`sync` sends what git would track. Patterns from `.gitignore` are excluded, so local secrets such as `.env.local` stay local and files that the worker generated are not deleted. `.gitignore` lines that start with `!` are not supported.
|
|
107
126
|
|
|
108
|
-
|
|
127
|
+
Steps 1 and 2, and the idle shutdown in step 4, exist because EAS Workflows does not offer SSH yet. Workflow SSH is coming soon and will replace them; see the note at the top.
|
|
109
128
|
|
|
110
129
|
## Limits
|
|
111
130
|
|
|
112
|
-
- iOS only.
|
|
131
|
+
- iOS only. Android support will be added shortly.
|
|
113
132
|
- One app per project root. Monorepos with dependencies outside the app directory are not supported.
|
|
114
133
|
- `build --prebuild` reinstalls dependencies with the package manager whose lockfile is present.
|
|
115
134
|
- Private npm packages need their token as an EAS environment variable in the `development` environment.
|