@devticon-os/graphql-codegen-axios 0.1.1 → 0.1.2
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 +8 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,23 +12,22 @@ Installation
|
|
|
12
12
|
You can install graphql-codegen-axios using npm:
|
|
13
13
|
|
|
14
14
|
```sh
|
|
15
|
-
npm install graphql-codegen-axios --save-dev
|
|
16
|
-
yarn add graphql-codegen-axios -D
|
|
17
|
-
pnpm add graphql-codegen-axios -D
|
|
15
|
+
npm install @devticon-os/graphql-codegen-axios --save-dev
|
|
16
|
+
yarn add @devticon-os/graphql-codegen-axios -D
|
|
17
|
+
pnpm add @devticon-os/graphql-codegen-axios -D
|
|
18
18
|
```
|
|
19
19
|
### Configuration
|
|
20
20
|
In your project's codegen.yml configuration file, add the following configuration:
|
|
21
21
|
|
|
22
22
|
```yml
|
|
23
|
-
overwrite: true
|
|
24
23
|
schema: https://your-graphql-api.com/graphql
|
|
25
24
|
documents: src/**/*.graphql
|
|
26
25
|
generates:
|
|
27
|
-
src/generated/graphql.ts:
|
|
28
|
-
plugins:
|
|
29
|
-
- typescript
|
|
30
|
-
- typescript-operations
|
|
31
|
-
- graphql-codegen-axios
|
|
26
|
+
src/generated/graphql.ts:
|
|
27
|
+
plugins:
|
|
28
|
+
- typescript
|
|
29
|
+
- typescript-operations
|
|
30
|
+
- @devticon-os/graphql-codegen-axios
|
|
32
31
|
```
|
|
33
32
|
You can customize the output file path and other settings as per your requirements.
|
|
34
33
|
|