-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add form cli #255
Merged
+11,571
−13,165
Merged
Add form cli #255
Changes from all commits
Commits
Show all changes
168 commits
Select commit
Hold shift + click to select a range
9b38e20
feat: add api uri to stack output
sdstolworthy ac18f6e
fix: update API.md
sdstolworthy 6a2d000
fix: pass graphql uri to unified config
sdstolworthy c35a826
codegen: add model generator
sdstolworthy db6c0a7
codegen: add coverage
sdstolworthy b97e5d3
codegen: fix lint and api
sdstolworthy 1c85615
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-mo…
sdstolworthy f3ce015
codegen: add coverage
sdstolworthy 498e4d0
codegen: package-lock
sdstolworthy eb61d43
fix: remove api url
sdstolworthy 889e429
fix: remove api url, rename ModelGenerator -> GraphqlModelGenerator
sdstolworthy 5ce0fa0
fix: update dictionary
sdstolworthy 0cc548d
fix: update api
sdstolworthy 7ad8ddd
fix: update api
sdstolworthy cc68d7f
fix: export example graphql schema from ts file
sdstolworthy 0421e08
fix: export example graphql schema from ts file
sdstolworthy 6a7d171
codegen: add form generator
sdstolworthy d8930db
codegen: add form generator
sdstolworthy 3d1baab
codegen: refactor form generation
sdstolworthy 700708f
codegen: update eslint rule; break out codegen service responses into…
sdstolworthy 0ff1d34
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy b85bc3d
lint: update for new linting rule
sdstolworthy cae1e4e
api: update api description files
sdstolworthy c81f521
api: update api description files
sdstolworthy cf87b25
codegen: rename types for uniformity; move outDir and language to fun…
sdstolworthy 943f33e
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-mo…
sdstolworthy 1270dd0
codegen: standardize naming; fix new lints from main
sdstolworthy 7568fc1
Merge branch 'add-model-gen' into add-form-gen
sdstolworthy 2d6a1a4
api: update api description files
sdstolworthy e1b742a
api: update api description files
sdstolworthy f1a531b
Merge branch 'add-model-gen' into add-form-gen
sdstolworthy 428a4fc
cli: initial migration of command from formgen POC
sdstolworthy 0fedd44
formgen: fix typo in codegen job waiter
sdstolworthy 1178c1a
example: update example code to use generated client
sdstolworthy b6a3924
codegen: progress
sdstolworthy 30c75e9
codegen: respond to PR comments
sdstolworthy 88c11ba
codegen: respond to PR comments
sdstolworthy 9efed24
codegen: respond to PR comments
sdstolworthy 7d8f787
codegen: respond to PR comments
sdstolworthy 17f5606
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-mo…
sdstolworthy 984ead9
npm: more fun deps issues
sdstolworthy 9533ca5
npm: more fun deps issues
sdstolworthy 32e701a
codegen: promisify format
sdstolworthy 2538ef6
codegen: add changeset
sdstolworthy cc77a10
codegen: update package-lock
sdstolworthy b4c272c
Merge branch 'add-model-gen' into add-form-cli
sdstolworthy b0fe138
formgen: update example Ui
sdstolworthy 24c06a8
codegen: update test snapshots
sdstolworthy 5550dae
Merge branch 'add-model-gen' into add-form-cli
sdstolworthy a3da6d7
codegen: merge model gen change, update example form
sdstolworthy 2ab0912
tests: update snapshots
sdstolworthy 91d387d
tests: update snapshots
sdstolworthy 4049c9a
Merge branch 'add-model-gen' into add-form-cli
sdstolworthy 6facb2a
codegen: add changeset, migrate to fs/promises
sdstolworthy e3098d4
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-mo…
sdstolworthy 5e293a1
Merge branch 'add-model-gen' into add-form-cli
sdstolworthy dfb989c
codegen: bump form and model gen dependencies
sdstolworthy 449cfa0
package: fix package-lock
sdstolworthy 2fba70b
Merge branch 'add-model-gen' into add-form-cli
sdstolworthy 9512f2d
codegen: remove extraneous test file
sdstolworthy 891bc9c
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-mo…
sdstolworthy 9b25295
codegen: use test asset
sdstolworthy ae9fee7
Merge branch 'add-model-gen' into add-form-cli
sdstolworthy aa43e60
codegen: add logger
sdstolworthy caa5909
Merge branch 'add-model-gen' into add-form-gen
sdstolworthy fdc1f07
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy 1d33131
packages: remove tiny-async-pool
sdstolworthy bb0352c
codegen: add changeset
sdstolworthy 716346c
codegen: add app name resolution
sdstolworthy 3dba28d
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy fb22ff8
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy 45f9ddd
Merge branch 'add-form-gen' into add-form-cli
sdstolworthy ee4b95f
lint: fix lints
sdstolworthy c16b752
feat: allow configurable output directories
sdstolworthy 74a190d
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy aac700e
feat: allow configurable output directories
sdstolworthy 49c5001
Merge branch 'add-form-gen' into add-form-cli
sdstolworthy 0982244
feat: configurable output directories
sdstolworthy d7a822d
Merge branch 'main' into add-form-cli
sdstolworthy c344700
npm: update package-lock
sdstolworthy bb40177
Merge branch 'main' into add-form-gen
sdstolworthy 9ffaaf6
codegen: rely on uibuilder formgen locally
sdstolworthy 01cdf1a
Merge branch 'add-form-gen' into add-form-cli
sdstolworthy 101f789
codegen: remove service generator
sdstolworthy 3058644
Merge branch 'add-form-gen' into add-form-cli
sdstolworthy 1ff5397
codegen: remove extraneous options
sdstolworthy a0109d5
codegen: remove schema mappers
sdstolworthy 4c1c178
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy 7217e7a
eslint: remove duplicate spell check entry
sdstolworthy f2c4b61
tests: remove test directive from subpackage
sdstolworthy 032d6de
api: update api description files
sdstolworthy f27b6e6
Merge branch 'add-form-gen' into add-form-cli
sdstolworthy 0f41b83
api: simplify exported api, update api description files
sdstolworthy e860973
fix: delete unused import
sdstolworthy e77b72b
codegen: return a generation result object
sdstolworthy 5bce561
refactor: add ResultBuilder to form generator
sdstolworthy 04ebf4b
tests: fix broken test
sdstolworthy 1bed20f
fix: update url parser, remove deprecated types, fix naming
sdstolworthy d3df4d9
Merge branch 'add-form-gen' into add-form-cli
sdstolworthy 35bd35c
fix: integrate new changes from form generator
sdstolworthy 313ec94
fix: fix write permissions for opened file
sdstolworthy 0c3f3c7
Merge branch 'add-form-gen' into add-form-cli
sdstolworthy 18b650f
Merge branch 'main' into add-api-uri
sdstolworthy 05a59e1
fix: correctly persist api info in client config
sdstolworthy 92b80d1
fix: tests
sdstolworthy ac31c8f
refactor: remove api url from client config
sdstolworthy e3080e3
tests: fix broken test
sdstolworthy e26d1ad
Merge branch 'add-api-uri' into add-form-cli
sdstolworthy 0f47bdc
feat: allow retrieval of backend outputs without persisting to client…
sdstolworthy d991b62
Merge branch 'main' of github.com:aws-amplify/samsara-cli into stack-…
sdstolworthy f2cd27f
Update packages/client-config/src/client_config_generator_factory.ts
sdstolworthy 2fd0151
refactor: export single utility method that retrieves the stack outputs
sdstolworthy 111246f
refactor: move stack output resolvers to own package
sdstolworthy 5e361c0
refactor: move stack output resolvers to own package
sdstolworthy 34d13ef
Merge branch 'main' into add-form-cli
sdstolworthy 3641d52
fix: remove graphql models
sdstolworthy 64b294e
fix: remove amplify configuration
sdstolworthy 3e2c5b2
Merge branch 'main' into stack-resolver-factory
sdstolworthy 155421a
npm: update package-lock
sdstolworthy 988fdb0
fix: add missing exports
sdstolworthy 0b7c5b9
Merge branch 'main' of github.com:aws-amplify/samsara-cli into stack-…
sdstolworthy d0f1fa7
npm: update package-lock
sdstolworthy 0a07970
refactor: export client class instead of method
sdstolworthy 53007db
Merge branch 'stack-resolver-factory' into add-form-cli
sdstolworthy c6e99e3
refactor: integrate stack outputs changes
sdstolworthy 89246a1
refactor: integrate stack outputs changes
sdstolworthy b2ff0af
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy c4fb1f7
Merge branch 'main' into add-form-cli
sdstolworthy d1bdb00
api: update api description files
sdstolworthy 2058bd5
npm: update package-lock
sdstolworthy 87e76d7
fix: fixed old straggling changes
sdstolworthy a07c2c0
changeset: add changeset
sdstolworthy 140bba9
Apply suggestions from code review
sdstolworthy 0f63252
npm: update package-lock
sdstolworthy f7f6207
Merge branch 'add-form-cli' of github.com:sdstolworthy/samsara-cli in…
sdstolworthy e3a69fe
fix: fixed incomplete variable renaming
sdstolworthy d2a441a
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy 85cd8f2
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy 4d6137f
Merge branch 'main' into add-form-cli
sdstolworthy a94e8b2
fix: updated tsconfig
sdstolworthy cb0f829
fix: refactor for tests
sdstolworthy 6dfef13
fix: add tests, rename input parameters
sdstolworthy eb61726
fix: add tests, rename input parameters
sdstolworthy 732d7fc
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy 6c544ec
fix: refactor missing args errors
sdstolworthy 4f026d9
fix: remove unnecessary validations
sdstolworthy 727b81b
fix: await model generation promise
sdstolworthy 090fefe
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy 7c6fa22
deps: add required dep
sdstolworthy ea11d6e
fix: updated tsconfig
sdstolworthy ad97f35
revert: Reverts #256; fixes linting errors
sdstolworthy 771902f
changeset: add changeset
sdstolworthy 164a274
Merge branch 'revert-eslint-config' into add-form-cli
sdstolworthy acc4a67
lint: fix lints
sdstolworthy e57b97d
npm: update package-lock
sdstolworthy c5eaeb1
fix: package update fixes typo
sdstolworthy c6a72da
fix: ignore test promises
sdstolworthy e6ad96c
fix: package-lock
sdstolworthy ac49470
Merge branch 'revert-eslint-config' into add-form-cli
sdstolworthy 8d7a51a
npm: update package-lock
sdstolworthy 3040262
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy 2600896
npm: update package-lock
sdstolworthy 9674adc
fix: updated tsconfig
sdstolworthy 9014015
npm: update package-lock
sdstolworthy 143c3ae
fix: updated tsconfig
sdstolworthy a8c60d9
fix: lint
sdstolworthy 86d2e87
fix: lint
sdstolworthy f4f53f3
Merge branch 'main' of github.com:aws-amplify/samsara-cli into add-fo…
sdstolworthy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@aws-amplify/backend-cli': minor | ||
--- | ||
|
||
Add form generation interface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,6 @@ yarn-error.log* | |
|
||
cdk.out | ||
src/amplifyconfiguration.js | ||
src/ui-components/ | ||
src/graphql/ | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
packages/cli/src/commands/generate/forms/form_generation_handler.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import path from 'path'; | ||
import { createLocalGraphqlFormGenerator } from '@aws-amplify/form-generator'; | ||
import { createGraphqlDocumentGenerator } from '@aws-amplify/model-generator'; | ||
import { BackendIdentifier } from '@aws-amplify/deployed-backend-client'; | ||
import { AwsCredentialIdentityProvider } from '@aws-sdk/types'; | ||
|
||
type FormGenerationParams = { | ||
modelsOutDir: string; | ||
uiOutDir: string; | ||
apiUrl: string; | ||
backendIdentifier: BackendIdentifier; | ||
}; | ||
type FormGenerationInstanceOptions = { | ||
credentialProvider: AwsCredentialIdentityProvider; | ||
}; | ||
/** | ||
* Creates a handler for FormGeneration | ||
*/ | ||
export class FormGenerationHandler { | ||
/** | ||
* Instantiates the handler | ||
*/ | ||
constructor(private readonly formGenParams: FormGenerationInstanceOptions) {} | ||
generate = async (params: FormGenerationParams) => { | ||
const { backendIdentifier, modelsOutDir, uiOutDir, apiUrl } = params; | ||
const { credentialProvider } = this.formGenParams; | ||
const graphqlClientGenerator = createGraphqlDocumentGenerator({ | ||
backendIdentifier, | ||
credentialProvider, | ||
}); | ||
const modelsResult = await graphqlClientGenerator.generateModels({ | ||
language: 'typescript', | ||
}); | ||
await modelsResult.writeToDirectory(modelsOutDir); | ||
const relativePath = path.relative(uiOutDir, modelsOutDir); | ||
const localFormGenerator = createLocalGraphqlFormGenerator({ | ||
introspectionSchemaUrl: apiUrl, | ||
graphqlModelDirectoryPath: relativePath, | ||
}); | ||
const result = await localFormGenerator.generateForms(); | ||
await result.writeToDirectory(uiOutDir); | ||
}; | ||
} |
199 changes: 199 additions & 0 deletions
199
packages/cli/src/commands/generate/forms/generate_forms_command.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
import { graphqlOutputKey } from '@aws-amplify/backend-output-schemas'; | ||
import { BackendOutputClient } from '@aws-amplify/deployed-backend-client'; | ||
import { fromNodeProviderChain } from '@aws-sdk/credential-providers'; | ||
import assert from 'node:assert'; | ||
import { describe, it, mock } from 'node:test'; | ||
import yargs, { CommandModule } from 'yargs'; | ||
import { BackendIdentifierResolver } from '../../../backend-identifier/backend_identifier_resolver.js'; | ||
import { TestCommandRunner } from '../../../test-utils/command_runner.js'; | ||
import { FormGenerationHandler } from './form_generation_handler.js'; | ||
import { GenerateFormsCommand } from './generate_forms_command.js'; | ||
|
||
void describe('generate forms command', () => { | ||
void describe('form generation validation', () => { | ||
void it('modelsOutDir path can be customized', async () => { | ||
const credentialProvider = fromNodeProviderChain(); | ||
|
||
const backendIdResolver = new BackendIdentifierResolver({ | ||
resolve: () => Promise.resolve('testAppName'), | ||
}); | ||
const formGenerationHandler = new FormGenerationHandler({ | ||
credentialProvider, | ||
}); | ||
|
||
const fakedBackendOutputClient = new BackendOutputClient( | ||
credentialProvider, | ||
{ stackName: 'test_stack' } | ||
); | ||
|
||
const generateFormsCommand = new GenerateFormsCommand( | ||
backendIdResolver, | ||
() => fakedBackendOutputClient, | ||
formGenerationHandler | ||
); | ||
|
||
const generationMock = mock.method(formGenerationHandler, 'generate'); | ||
generationMock.mock.mockImplementation(async () => undefined); | ||
mock | ||
.method(fakedBackendOutputClient, 'getOutput') | ||
.mock.mockImplementation(async () => ({ | ||
[graphqlOutputKey]: { | ||
payload: { | ||
awsAppsyncApiId: 'test_api_id', | ||
amplifyApiModelSchemaS3Uri: 'test_schema', | ||
awsAppsyncApiEndpoint: 'test_endpoint', | ||
}, | ||
}, | ||
})); | ||
const parser = yargs().command( | ||
generateFormsCommand as unknown as CommandModule | ||
); | ||
|
||
const modelsOutPath = './my-fake-models-path'; | ||
const commandRunner = new TestCommandRunner(parser); | ||
await commandRunner.runCommand( | ||
`forms --stack my_stack --modelsOutDir ${modelsOutPath}` | ||
); | ||
assert.equal( | ||
generationMock.mock.calls[0].arguments[0].modelsOutDir, | ||
modelsOutPath | ||
); | ||
}); | ||
void it('uiOutDir path can be customized', async () => { | ||
const credentialProvider = fromNodeProviderChain(); | ||
|
||
const backendIdResolver = new BackendIdentifierResolver({ | ||
resolve: () => Promise.resolve('testAppName'), | ||
}); | ||
const formGenerationHandler = new FormGenerationHandler({ | ||
credentialProvider, | ||
}); | ||
|
||
const fakedBackendOutputClient = new BackendOutputClient( | ||
credentialProvider, | ||
{ stackName: 'test_stack' } | ||
); | ||
|
||
const generateFormsCommand = new GenerateFormsCommand( | ||
backendIdResolver, | ||
() => fakedBackendOutputClient, | ||
formGenerationHandler | ||
); | ||
|
||
const generationMock = mock.method(formGenerationHandler, 'generate'); | ||
generationMock.mock.mockImplementation(async () => undefined); | ||
mock | ||
.method(fakedBackendOutputClient, 'getOutput') | ||
.mock.mockImplementation(async () => ({ | ||
[graphqlOutputKey]: { | ||
payload: { | ||
awsAppsyncApiId: 'test_api_id', | ||
amplifyApiModelSchemaS3Uri: 'test_schema', | ||
awsAppsyncApiEndpoint: 'test_endpoint', | ||
}, | ||
}, | ||
})); | ||
const parser = yargs().command( | ||
generateFormsCommand as unknown as CommandModule | ||
); | ||
|
||
const uiOutPath = './my-fake-ui-path'; | ||
const commandRunner = new TestCommandRunner(parser); | ||
await commandRunner.runCommand( | ||
`forms --stack my_stack --uiOutDir ${uiOutPath}` | ||
); | ||
assert.equal( | ||
generationMock.mock.calls[0].arguments[0].uiOutDir, | ||
uiOutPath | ||
); | ||
}); | ||
void it('./src/ui-components is the default graphql model generation path', async () => { | ||
const credentialProvider = fromNodeProviderChain(); | ||
|
||
const backendIdResolver = new BackendIdentifierResolver({ | ||
resolve: () => Promise.resolve('testAppName'), | ||
}); | ||
const formGenerationHandler = new FormGenerationHandler({ | ||
credentialProvider, | ||
}); | ||
|
||
const fakedBackendOutputClient = new BackendOutputClient( | ||
credentialProvider, | ||
{ stackName: 'test_stack' } | ||
); | ||
|
||
const generateFormsCommand = new GenerateFormsCommand( | ||
backendIdResolver, | ||
() => fakedBackendOutputClient, | ||
formGenerationHandler | ||
); | ||
|
||
const generationMock = mock.method(formGenerationHandler, 'generate'); | ||
generationMock.mock.mockImplementation(async () => undefined); | ||
mock | ||
.method(fakedBackendOutputClient, 'getOutput') | ||
.mock.mockImplementation(async () => ({ | ||
[graphqlOutputKey]: { | ||
payload: { | ||
awsAppsyncApiId: 'test_api_id', | ||
amplifyApiModelSchemaS3Uri: 'test_schema', | ||
awsAppsyncApiEndpoint: 'test_endpoint', | ||
}, | ||
}, | ||
})); | ||
const parser = yargs().command( | ||
generateFormsCommand as unknown as CommandModule | ||
); | ||
const commandRunner = new TestCommandRunner(parser); | ||
await commandRunner.runCommand('forms --stack my_stack'); | ||
assert.equal( | ||
generationMock.mock.calls[0].arguments[0].uiOutDir, | ||
'./src/ui-components' | ||
); | ||
}); | ||
void it('./src/graphql is the default graphql model generation path', async () => { | ||
const credentialProvider = fromNodeProviderChain(); | ||
|
||
const backendIdResolver = new BackendIdentifierResolver({ | ||
resolve: () => Promise.resolve('testAppName'), | ||
}); | ||
const formGenerationHandler = new FormGenerationHandler({ | ||
credentialProvider, | ||
}); | ||
|
||
const fakedBackendOutputClient = new BackendOutputClient( | ||
credentialProvider, | ||
{ stackName: 'test_stack' } | ||
); | ||
|
||
const generateFormsCommand = new GenerateFormsCommand( | ||
backendIdResolver, | ||
() => fakedBackendOutputClient, | ||
formGenerationHandler | ||
); | ||
|
||
const generationMock = mock.method(formGenerationHandler, 'generate'); | ||
generationMock.mock.mockImplementation(async () => undefined); | ||
mock | ||
.method(fakedBackendOutputClient, 'getOutput') | ||
.mock.mockImplementation(async () => ({ | ||
[graphqlOutputKey]: { | ||
payload: { | ||
awsAppsyncApiId: 'test_api_id', | ||
amplifyApiModelSchemaS3Uri: 'test_schema', | ||
awsAppsyncApiEndpoint: 'test_endpoint', | ||
}, | ||
}, | ||
})); | ||
const parser = yargs().command( | ||
generateFormsCommand as unknown as CommandModule | ||
); | ||
const commandRunner = new TestCommandRunner(parser); | ||
await commandRunner.runCommand('forms --stack my_stack'); | ||
assert.equal( | ||
generationMock.mock.calls[0].arguments[0].modelsOutDir, | ||
'./src/graphql' | ||
); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cli needs to know this? that's odd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/sdstolworthy/samsara-cli/blob/add-form-cli/packages/cli/src/commands/generate/forms/generate_forms_command.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably shouldn't directly import that package in the long run, but we can leave that refactor for our future selves :)