Start, list and stop Expo Simulators sessions through the EAS GraphQL API, and install a build on a running session through its agent-device controller. - boot-device and install-and-launch accept an eas: device ID. - list-remote-simulators lists the sessions the user started and the accounts on a paid plan. - list-remote-simulator-options lists device models, recent builds and Expo Go versions for a project. - stop-remote-simulator stops a session. The controller URL and token never leave the CLI, and no error carries them.
20 lines
688 B
TypeScript
20 lines
688 B
TypeScript
import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
import { Config } from 'common-types';
|
|
|
|
const config: CodegenConfig = {
|
|
overwrite: true,
|
|
schema: `${Config.api.origin}/graphql`,
|
|
documents: './src/graphql/**/*.gql',
|
|
generates: {
|
|
'./src/graphql/generated/graphql.ts': {
|
|
plugins: ['typescript', 'typescript-operations', 'typescript-graphql-request'],
|
|
// Only the enums and inputs the documents use. The full schema no longer compiles:
|
|
// `AppObserve.navigationRoutes` and `AppObserveNavigation.routes` generate the same
|
|
// `AppObserveNavigationRoutesArgs` name.
|
|
config: { onlyOperationTypes: true },
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|