Skip to content

Commit ba68f40

Browse files
authored
[eas-cli] Create new command to configure a new project (#3196)
* incorporate pr feedback * playing around with adding build * create expo project * clean up getAccountChoices * update unit test * removed some unused code * wip * working on test files * fix previews, add more end comments * small tweaks to tests * update changelog
1 parent 1380b02 commit ba68f40

File tree

10 files changed

+1206
-296
lines changed

10 files changed

+1206
-296
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ This is the log of notable changes to EAS CLI and related packages.
1010

1111
- Improvements to workflow:validate. ([#3165](https://github.com/expo/eas-cli/pull/3165) by [@douglowder](https://github.com/douglowder))
1212

13+
- Add `eas:new` command behind `hidden` flag. ([#3196](https://github.com/expo/eas-cli/pull/3196) by [@mackenco](https://github.com/mackenco))
14+
1315
### 🐛 Bug fixes
1416

1517
### 🧹 Chores

packages/eas-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"tar-stream": "3.1.7",
8787
"terminal-link": "2.1.1",
8888
"tslib": "2.6.2",
89+
"ts-deepmerge": "6.2.0",
8990
"turndown": "7.1.2",
9091
"untildify": "4.0.0",
9192
"uuid": "9.0.1",
@@ -126,7 +127,6 @@
126127
"mockdate": "3.0.5",
127128
"nock": "13.4.0",
128129
"rimraf": "3.0.2",
129-
"ts-deepmerge": "6.2.0",
130130
"ts-mockito": "2.6.1",
131131
"ts-node": "10.9.2",
132132
"typescript": "5.3.3"

packages/eas-cli/src/commands/build/configure.ts

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import Log, { learnMore } from '../../log';
1010
import { RequestedPlatform } from '../../platform';
1111
import { isExpoUpdatesInstalled, isUsingEASUpdate } from '../../project/projectUtils';
1212
import { resolveWorkflowAsync } from '../../project/workflow';
13-
import { promptAsync } from '../../prompts';
1413
import { syncUpdatesConfigurationAsync as syncAndroidUpdatesConfigurationAsync } from '../../update/android/UpdatesModule';
1514
import { ensureEASUpdateIsConfiguredInEasJsonAsync } from '../../update/configure';
1615
import { syncUpdatesConfigurationAsync as syncIosUpdatesConfigurationAsync } from '../../update/ios/UpdatesModule';
16+
import { promptPlatformAsync } from '../../utils/prompts';
1717

1818
export default class BuildConfigure extends EasCommand {
1919
static override description = 'configure the project to support EAS Build';
@@ -113,24 +113,7 @@ export default class BuildConfigure extends EasCommand {
113113

114114
async function promptForPlatformAsync(): Promise<RequestedPlatform> {
115115
Log.addNewLineIfNone();
116-
const { platform } = await promptAsync({
117-
type: 'select',
116+
return await promptPlatformAsync({
118117
message: 'Which platforms would you like to configure for EAS Build?',
119-
name: 'platform',
120-
choices: [
121-
{
122-
title: 'All',
123-
value: RequestedPlatform.All,
124-
},
125-
{
126-
title: 'iOS',
127-
value: RequestedPlatform.Ios,
128-
},
129-
{
130-
title: 'Android',
131-
value: RequestedPlatform.Android,
132-
},
133-
],
134118
});
135-
return platform;
136119
}

0 commit comments

Comments
 (0)