Skip to content

Commit ade0b48

Browse files
authored
docs: use graphql-code-generator in npx example (dotansimha#8080)
* docs: use graphql-code-generator in npx example * prettier
1 parent 16a1d81 commit ade0b48

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

website/src/pages/docs/advanced/profiler.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { PackageCmd } from '@theguild/components'
44

55
GraphQL Code Generator CLI provides a flag that enables the profiler mode, as follows:
66

7-
<PackageCmd packages={[{ name: 'graphql-codegen --config graphql-codegen.yml --profile', cmd: 'run', isNpx: true }]} />
7+
<PackageCmd
8+
packages={[{ name: 'graphql-code-generator --config graphql-codegen.yml --profile', cmd: 'run', isNpx: true }]}
9+
/>
810

911
GraphQL Code Generator operates as usual (generating your files) but also generates a `codegen-[timestamp].json` profile file.
1012

website/src/pages/docs/config-reference/codegen-config.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The CLI automatically detects the defined config file and generates code accordi
1010

1111
In addition, you can also define a path to your config file with the `--config` options, like so:
1212

13-
<PackageCmd packages={[{ name: 'graphql-codegen --config ./path/to/config.yml', cmd: 'run', isNpx: true }]} />
13+
<PackageCmd packages={[{ name: 'graphql-code-generator --config ./path/to/config.yml', cmd: 'run', isNpx: true }]} />
1414

1515
## Configuration file format
1616

website/src/pages/docs/getting-started/installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Once installed, GraphQL Code Generator CLI can help you configure your project b
3434

3535
<PackageCmd
3636
packages={[
37-
{ name: 'graphql-codegen init', cmd: 'run', isNpx: true },
37+
{ name: 'graphql-code-generator init', cmd: 'run', isNpx: true },
3838
{ name: '# install the chosen plugins', cmd: 'install' }
3939
]}
4040
/>

website/src/pages/plugins/typescript/typescript-oclif.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Breaking that down:
142142
relative to the generated files (ie here, `src/commands/something/file.graphql`).
143143
Note that it has no extension.
144144

145-
With that configured, just run `yarn graphql-codegen` or `npx graphql-codegen` to generate all the
145+
With that configured, just run `yarn graphql-codegen` or `npx graphql-code-generator` to generate all the
146146
necessary `oclif` command files. With that complete, follow the directions in the
147147
[oclif guide](https://oclif.io/docs/introduction) to run your new CLI tool.
148148

0 commit comments

Comments
 (0)