eas-cli 16.7.1 → 16.8.0
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/README.md +120 -76
- package/build/build/runBuildAndSubmit.js +4 -4
- package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.d.ts +3 -1
- package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.js +7 -3
- package/build/commands/build/configure.js +2 -2
- package/build/commands/update/configure.js +2 -2
- package/build/commands/update/index.js +4 -4
- package/build/commands/update/roll-back-to-embedded.js +2 -2
- package/build/commands/workflow/list.d.ts +12 -0
- package/build/commands/workflow/list.js +52 -0
- package/build/commands/workflow/run.js +0 -1
- package/build/commands/workflow/runs.d.ts +16 -0
- package/build/commands/workflow/runs.js +87 -0
- package/build/graphql/generated.d.ts +131 -4
- package/build/graphql/generated.js +0 -1
- package/build/graphql/queries/AppQuery.d.ts +3 -1
- package/build/graphql/queries/AppQuery.js +57 -0
- package/build/graphql/queries/WorkflowRunQuery.d.ts +2 -1
- package/build/graphql/queries/WorkflowRunQuery.js +38 -0
- package/build/graphql/types/Workflow.d.ts +1 -0
- package/build/graphql/types/Workflow.js +14 -0
- package/build/graphql/types/WorkflowRun.d.ts +1 -0
- package/build/graphql/types/WorkflowRun.js +20 -0
- package/build/project/android/gradleUtils.d.ts +8 -1
- package/build/project/android/gradleUtils.js +4 -1
- package/oclif.manifest.json +74 -1
- package/package.json +3 -3
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WorkflowRunQuery = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
|
+
const graphql_1 = require("graphql");
|
|
5
7
|
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
8
|
const client_1 = require("../client");
|
|
9
|
+
const WorkflowRun_1 = require("../types/WorkflowRun");
|
|
7
10
|
exports.WorkflowRunQuery = {
|
|
8
11
|
async byIdAsync(graphqlClient, workflowRunId, { useCache = true } = {}) {
|
|
9
12
|
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
@@ -59,4 +62,39 @@ exports.WorkflowRunQuery = {
|
|
|
59
62
|
.toPromise());
|
|
60
63
|
return data.workflowRuns.byId;
|
|
61
64
|
},
|
|
65
|
+
async byAppIdFileNameAndStatusAsync(graphqlClient, appId, fileName, status, limit) {
|
|
66
|
+
validateLimit(limit);
|
|
67
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
68
|
+
.query((0, graphql_tag_1.default) `
|
|
69
|
+
query WorkflowRunsForAppIdFileNameAndStatusQuery(
|
|
70
|
+
$appId: ID!
|
|
71
|
+
$fileName: String!
|
|
72
|
+
$status: WorkflowRunStatus
|
|
73
|
+
$limit: Int!
|
|
74
|
+
) {
|
|
75
|
+
workflows {
|
|
76
|
+
byAppIdAndFileName(appId: $appId, fileName: $fileName) {
|
|
77
|
+
id
|
|
78
|
+
runs: runsPaginated(last: $limit, filter: { status: $status }) {
|
|
79
|
+
edges {
|
|
80
|
+
node {
|
|
81
|
+
id
|
|
82
|
+
...WorkflowRunFragment
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
${(0, graphql_1.print)(WorkflowRun_1.WorkflowRunFragmentNode)}
|
|
90
|
+
`, { appId, fileName, status, limit }, { additionalTypenames: ['Workflow'] })
|
|
91
|
+
.toPromise());
|
|
92
|
+
(0, assert_1.default)(data.workflows, 'GraphQL: `workflows` not defined in server response');
|
|
93
|
+
return data.workflows.byAppIdAndFileName.runs.edges.map(edge => edge.node);
|
|
94
|
+
},
|
|
62
95
|
};
|
|
96
|
+
function validateLimit(limit) {
|
|
97
|
+
(0, assert_1.default)(limit, 'limit is required');
|
|
98
|
+
(0, assert_1.default)(limit > 0, 'limit must be greater than 0');
|
|
99
|
+
(0, assert_1.default)(limit <= 100, 'limit must be less than or equal to 100');
|
|
100
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WorkflowFragmentNode: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowFragmentNode = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
+
exports.WorkflowFragmentNode = (0, graphql_tag_1.default) `
|
|
7
|
+
fragment WorkflowFragment on Workflow {
|
|
8
|
+
id
|
|
9
|
+
name
|
|
10
|
+
fileName
|
|
11
|
+
createdAt
|
|
12
|
+
updatedAt
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WorkflowRunFragmentNode: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowRunFragmentNode = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
+
exports.WorkflowRunFragmentNode = (0, graphql_tag_1.default) `
|
|
7
|
+
fragment WorkflowRunFragment on WorkflowRun {
|
|
8
|
+
id
|
|
9
|
+
status
|
|
10
|
+
gitCommitMessage
|
|
11
|
+
gitCommitHash
|
|
12
|
+
createdAt
|
|
13
|
+
updatedAt
|
|
14
|
+
workflow {
|
|
15
|
+
id
|
|
16
|
+
name
|
|
17
|
+
fileName
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
@@ -12,7 +12,14 @@ interface Config {
|
|
|
12
12
|
interface AppBuildGradle {
|
|
13
13
|
android?: {
|
|
14
14
|
defaultConfig?: Config;
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* If defined as `flavorDimensions = ['dimension1', 'dimension2']`,
|
|
17
|
+
* this will be an array of strings (`['dimension1', 'dimension2']`).
|
|
18
|
+
*
|
|
19
|
+
* If defined as `flavorDimensions "dimension1", "dimension2"`,
|
|
20
|
+
* this will be a string (`"dimension1", "dimension2"`).
|
|
21
|
+
*/
|
|
22
|
+
flavorDimensions?: string | string[];
|
|
16
23
|
productFlavors?: Record<string, Config>;
|
|
17
24
|
};
|
|
18
25
|
}
|
|
@@ -36,7 +36,10 @@ exports.resolveConfigValue = resolveConfigValue;
|
|
|
36
36
|
* the flavor name
|
|
37
37
|
**/
|
|
38
38
|
function parseGradleCommand(cmd, buildGradle) {
|
|
39
|
-
const
|
|
39
|
+
const flavorDimensions = typeof buildGradle.android?.flavorDimensions === 'string'
|
|
40
|
+
? buildGradle.android.flavorDimensions.split(',')
|
|
41
|
+
: buildGradle.android?.flavorDimensions;
|
|
42
|
+
const hasFlavorDimensions = flavorDimensions && flavorDimensions.length > 1;
|
|
40
43
|
if (hasFlavorDimensions) {
|
|
41
44
|
throw new Error('flavorDimensions in build.gradle are not supported yet');
|
|
42
45
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.
|
|
2
|
+
"version": "16.8.0",
|
|
3
3
|
"commands": {
|
|
4
4
|
"analytics": {
|
|
5
5
|
"id": "analytics",
|
|
@@ -4176,6 +4176,28 @@
|
|
|
4176
4176
|
"projectDir": {}
|
|
4177
4177
|
}
|
|
4178
4178
|
},
|
|
4179
|
+
"workflow:list": {
|
|
4180
|
+
"id": "workflow:list",
|
|
4181
|
+
"description": "List workflows for the current project",
|
|
4182
|
+
"strict": true,
|
|
4183
|
+
"pluginName": "eas-cli",
|
|
4184
|
+
"pluginAlias": "eas-cli",
|
|
4185
|
+
"pluginType": "core",
|
|
4186
|
+
"aliases": [],
|
|
4187
|
+
"flags": {
|
|
4188
|
+
"json": {
|
|
4189
|
+
"name": "json",
|
|
4190
|
+
"type": "boolean",
|
|
4191
|
+
"description": "Enable JSON output, non-JSON messages will be printed to stderr.",
|
|
4192
|
+
"allowNo": false
|
|
4193
|
+
}
|
|
4194
|
+
},
|
|
4195
|
+
"args": {},
|
|
4196
|
+
"contextDefinition": {
|
|
4197
|
+
"projectId": {},
|
|
4198
|
+
"loggedIn": {}
|
|
4199
|
+
}
|
|
4200
|
+
},
|
|
4179
4201
|
"workflow:run": {
|
|
4180
4202
|
"id": "workflow:run",
|
|
4181
4203
|
"description": "run an EAS workflow",
|
|
@@ -4219,6 +4241,57 @@
|
|
|
4219
4241
|
"loggedIn": {}
|
|
4220
4242
|
}
|
|
4221
4243
|
},
|
|
4244
|
+
"workflow:runs": {
|
|
4245
|
+
"id": "workflow:runs",
|
|
4246
|
+
"description": "list recent workflow runs for this project, with their IDs, statuses, and timestamps",
|
|
4247
|
+
"strict": true,
|
|
4248
|
+
"pluginName": "eas-cli",
|
|
4249
|
+
"pluginAlias": "eas-cli",
|
|
4250
|
+
"pluginType": "core",
|
|
4251
|
+
"aliases": [],
|
|
4252
|
+
"flags": {
|
|
4253
|
+
"workflow": {
|
|
4254
|
+
"name": "workflow",
|
|
4255
|
+
"type": "option",
|
|
4256
|
+
"description": "If present, the query will only return runs for the specified workflow file name",
|
|
4257
|
+
"required": false,
|
|
4258
|
+
"multiple": false
|
|
4259
|
+
},
|
|
4260
|
+
"status": {
|
|
4261
|
+
"name": "status",
|
|
4262
|
+
"type": "option",
|
|
4263
|
+
"description": "If present, filter the returned runs to select those with the specified status",
|
|
4264
|
+
"required": false,
|
|
4265
|
+
"helpValue": "(ACTION_REQUIRED|CANCELED|FAILURE|IN_PROGRESS|NEW|SUCCESS)",
|
|
4266
|
+
"multiple": false,
|
|
4267
|
+
"options": [
|
|
4268
|
+
"ACTION_REQUIRED",
|
|
4269
|
+
"CANCELED",
|
|
4270
|
+
"FAILURE",
|
|
4271
|
+
"IN_PROGRESS",
|
|
4272
|
+
"NEW",
|
|
4273
|
+
"SUCCESS"
|
|
4274
|
+
]
|
|
4275
|
+
},
|
|
4276
|
+
"json": {
|
|
4277
|
+
"name": "json",
|
|
4278
|
+
"type": "boolean",
|
|
4279
|
+
"description": "Enable JSON output, non-JSON messages will be printed to stderr.",
|
|
4280
|
+
"allowNo": false
|
|
4281
|
+
},
|
|
4282
|
+
"limit": {
|
|
4283
|
+
"name": "limit",
|
|
4284
|
+
"type": "option",
|
|
4285
|
+
"description": "The number of items to fetch each query. Defaults to 10 and is capped at 100.",
|
|
4286
|
+
"multiple": false
|
|
4287
|
+
}
|
|
4288
|
+
},
|
|
4289
|
+
"args": {},
|
|
4290
|
+
"contextDefinition": {
|
|
4291
|
+
"projectId": {},
|
|
4292
|
+
"loggedIn": {}
|
|
4293
|
+
}
|
|
4294
|
+
},
|
|
4222
4295
|
"workflow:validate": {
|
|
4223
4296
|
"id": "workflow:validate",
|
|
4224
4297
|
"description": "validate a workflow configuration yaml file",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eas-cli",
|
|
3
3
|
"description": "EAS command line tool",
|
|
4
|
-
"version": "16.
|
|
4
|
+
"version": "16.8.0",
|
|
5
5
|
"author": "Expo <support@expo.dev>",
|
|
6
6
|
"bin": {
|
|
7
7
|
"eas": "./bin/run"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@expo/config": "10.0.6",
|
|
14
14
|
"@expo/config-plugins": "9.0.12",
|
|
15
15
|
"@expo/eas-build-job": "1.0.173",
|
|
16
|
-
"@expo/eas-json": "16.
|
|
16
|
+
"@expo/eas-json": "16.8.0",
|
|
17
17
|
"@expo/env": "^1.0.0",
|
|
18
18
|
"@expo/json-file": "8.3.3",
|
|
19
19
|
"@expo/logger": "1.0.117",
|
|
@@ -240,5 +240,5 @@
|
|
|
240
240
|
"node": "20.11.0",
|
|
241
241
|
"yarn": "1.22.21"
|
|
242
242
|
},
|
|
243
|
-
"gitHead": "
|
|
243
|
+
"gitHead": "f968654ffcc0c3351c397484be5942d6f835f9d8"
|
|
244
244
|
}
|