You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Enable & Disable Expo Hermes |`reactNative.expoHermesEnable`| Use hermes or jsc as JavaScript engine for expo project |
144
145
| Open expo upgrade helper in web page |`reactNative.openExpoUpgradeHelper`| Open expo upgrade helper in web browser |
145
146
| Kill Port |`reactNative.killPort`| Kill the process running on a specific port |
147
+
| Run EAS Build |`reactNative.runEasBuild`| Initialize EAS Build configuration by creating `eas.json` and `.eas/workflows/create-production-builds.yml` files if they don't exist |
146
148
| Set React Native New Architecture |`reactNative.setNewArch`| Enable or disable the new architecture settings in RN projects |
147
149
| Toggle Network View |`reactNative.toggleNetworkView`| Enable or disable vscode network view feature for web debugging |
148
150
@@ -432,6 +434,74 @@ Expo using Hermes as default engine, you can switch engine on a specific platfor
432
434
433
435
**Note**: You maybe need to create developer account to run `eas build`. Any other issue or limitiation, please see [expo hermes ducomentation](https://docs.expo.dev/guides/using-hermes/).
434
436
437
+
### EAS Build initialization
438
+
439
+
The **Run EAS Build** command (`reactNative.runEasBuild`) helps you quickly set up [Expo Application Services (EAS) Build](https://docs.expo.dev/build/introduction/) configuration in your Expo project.
440
+
441
+
#### What it does
442
+
443
+
When you run this command from the Command Palette (`Ctrl+Shift+P` or `Cmd+Shift+P`), it will:
444
+
445
+
1. Check if your project root directory is accessible
446
+
2. Create an `eas.json` file (if it doesn't exist) with an empty configuration `{}`
447
+
3. Create the `.eas/workflows/` directory structure
448
+
4. Generate a `create-production-builds.yml` workflow file with the following content:
449
+
450
+
```yaml
451
+
name: Create Production Builds
452
+
jobs:
453
+
build_android:
454
+
type: build # This job type creates a production build for Android
455
+
params:
456
+
platform: android
457
+
build_ios:
458
+
type: build # This job type creates a production build for iOS
459
+
params:
460
+
platform: ios
461
+
```
462
+
463
+
#### How to use
464
+
465
+
1. Open your Expo project in VS Code
466
+
2. Press `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (macOS) to open the Command Palette
467
+
3. Type "Run EAS Build" and select **React Native: Run EAS Build**
468
+
4. The command will create the necessary files if they don't exist
469
+
470
+
**Note**: The command is idempotent - it will not overwrite existing files. If the files already exist, the command will skip creation and display an appropriate message.
471
+
472
+
#### Next steps after initialization
473
+
474
+
After running this command, you should:
475
+
476
+
1. **Configure `eas.json`**: Add your build profiles (e.g., `development`, `preview`, `production`). See [EAS Build Configuration](https://docs.expo.dev/build/eas-json/) for details.
477
+
478
+
2. **Set up credentials**: Configure your iOS and Android signing credentials. Use `eas credentials` command or configure them in your EAS project.
479
+
480
+
3. **Run your first build**:
481
+
482
+
```bash
483
+
# For Android
484
+
npx eas build --platform android
485
+
486
+
# For iOS
487
+
npx eas build --platform ios
488
+
489
+
# For both platforms
490
+
npx eas build --platform all
491
+
```
492
+
493
+
4. **Customize workflows**: Edit `.eas/workflows/create-production-builds.yml` to add more complex build configurations, such as different build profiles, environment variables, or custom scripts.
494
+
495
+
5. **Monitor builds**: Use `React Native: Open the eas project in a web page` command to view your build status in the EAS dashboard.
496
+
497
+
#### Troubleshooting
498
+
499
+
- **Permission errors**: Ensure VS Code has write permissions to your project directory
500
+
- **Files already exist**: The command will skip file creation if they already exist - this is normal behavior
501
+
- **Project not found**: Make sure you have opened a React Native/Expo project folder in VS Code
502
+
503
+
For more information about EAS Build, visit the [official Expo documentation](https://docs.expo.dev/build/introduction/).
504
+
435
505
## React Native for Windows
436
506
437
507
Please make sure that your development environment is configured properly in accordance with [the official system requirements](https://microsoft.github.io/react-native-windows/docs/rnw-dependencies).
0 commit comments