Skip to content

Commit

Permalink
Merge pull request #706 from cosmology-tech/vue-query-option
Browse files Browse the repository at this point in the history
added 'vue-query' option to telescope for vue-query composables generation.
  • Loading branch information
Zetazzz authored Dec 13, 2024
2 parents 0a807dc + f05e4ca commit e48c178
Show file tree
Hide file tree
Showing 123 changed files with 39,961 additions and 51 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ The following blockchain libraries (generated by Telescope) are available via np
- [React Query](#react-query)
- [Mobx](#mobx)
- [Pinia](#pinia)
- [Vue Query](#vue-query)
- [Typings and Formating](#typings-and-formating)
- [Protobuf parser](#protobuf-parser)
- [Typescript Disabling](#typescript-disabling)
Expand Down Expand Up @@ -512,6 +513,13 @@ See [Helper Functions Configuration](#helper-functions-configuration) for more i
| `mobx.include.packages` | if set, will create the pinia stores on matched packages files using minimatch | `[]` |
| `mobx.include.patterns` | if set, will create the pinia stores on matched patterns of proto files using minimatch(deprecated in favor of packages and protos have been supported minimatch) | `[]` |

#### Vue Query
| option | description | defaults |
| -------------------------------- | ---------------------------------------------------------------------- | ---------|
| `vueQuery.enabled` | if true, will create vue composables that use `@tanstack/vue-query` composables | `false` |
| `vueQuery.include.protos` | if set, will create the composables on matched proto filenames or patterns using minimatch | `[]` |
| `vueQuery.include.packages` | if set, will create the composables on matched packages files using minimatch | `[]` |

### Typings and Formating

| option | description | defaults |
Expand Down
1 change: 1 addition & 0 deletions __fixtures__/v-next/outputv4/amino/amino.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {}
4 changes: 4 additions & 0 deletions __fixtures__/v-next/outputv4/amino/bundle.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import * as _363 from "./amino";
export const amino = {
..._363
};
8 changes: 8 additions & 0 deletions __fixtures__/v-next/outputv4/capability/bundle.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import * as _364 from "./v1/capability";
import * as _365 from "./v1/genesis";
export namespace capability {
export const v1 = {
..._364,
..._365
};
}
Loading

0 comments on commit e48c178

Please sign in to comment.