Skip to content

Conversation

@clockworkgr
Copy link
Collaborator

Attempt at a better typed plugin system.

Client class is statically configured and exported

@ilgooz ilgooz added this to the Priority milestone Jul 25, 2022
@clockworkgr clockworkgr merged commit 8ab2149 into ts-client Sep 2, 2022
@clockworkgr clockworkgr deleted the ts-client-typings branch September 2, 2022 08:23
ilgooz added a commit that referenced this pull request Sep 12, 2022
…2142) (#2143)

* feat(frontend): ts-client + pinia (#2142)

* Update index.ts.tpl

* Update index.ts.tpl

* Update package.json.tpl

* Update index.ts.tpl

* Update package.json.tpl

* Update generate_javascript.go

* Create index.ts.tpl

* Create module.ts.tpl

* Create pinia.ts.tpl

* Create idnex.ts.tpl

* Rename idnex.ts.tpl to index.ts.tpl

* Create package.json.tpl

* Delete starport/pkg/cosmosgen/templates/vuex directory

* Delete starport/pkg/cosmosgen/templates/js directory

* Update cosmosgen.go

* Update generate_javascript.go

* Update template.go

* Update generate.go

* Update generate.go

* Update scaffolder.go

* Rename generate_vuex.go to generate_sdk.go

* Update config.go

* Update generate_javascript.go

* Update build.go

* Update generate_sdk.go

* Update generate_javascript.go

* Update generate_javascript.go

* 🏗

* adjusted pinia path

* 🏗

* n

* n

* Update starport/pkg/cosmosgen/templates/root/index.ts.tpl

Co-authored-by: Alex Megalokonomos <alex@clockwork.gr>

* n

* plugins

* refactored

* adjusted ts templates

* mod tidy

* better syntax

* bump @ignt/plugins

* tpl header

* string formatting

* adjusted test out dir

* adjusted integration test

* adjusted integration test

* minors

* Update docs/cli/index.md

Co-authored-by: Barrie Byron <barriebyron@gmail.com>

* Update ignite/cmd/generate_typescript_client.go

Co-authored-by: Barrie Byron <barriebyron@gmail.com>

* Update docs/kb/frontend.md

Co-authored-by: Barrie Byron <barriebyron@gmail.com>

* Update build.go

* expand on the web app template

* grammar fixes for the articles

* mono repo URL is changed

* add missing article for grammar fix

* grammar fix and add more scope to the web app template

* feat: Client config typing (#2569)

* feat: Client config typing

* fix: remove console

* wip

* wip

* fix: remove accidentally committed files

* fixed: type issues/code duplication

* fix: use new @starport/vuex getter

* fix: correct export

* fix: changed generate typescript and vuex to match latest changes

* fix: change output dir for typescript root templates

* fix: remove "module" suffix from typescript module paths

It seems that the module folder was replaced by the `module.ts` file
during module generation.

* fix: replace deprecated `strings.Title()` by a caser

* fix: remove unused `monitoringProviderQuery` field from `Network`

* ci: fix linting issues

* chore: fix issue with vuex generation

* chore: fix vuex module path issue

* test: fix broken `cosmosgen` test

* fix: correct client root path

* test: fix broken integration test

* refactor: remove namespace prefix from module paths

* ci: fix invalid `Join` call

* docs: fixed TS client directory name

* test: fix broken unit test

* refactor: add link to ts-client to vue app dependencies during scaffold

* chore: add indentation to the packages.json file

* fix: change Vuex generation to use a relative ts-client link path

* chore: change vue app dependency update to return custom errors

* fix: Template version and fee fixes

* fix: Bump template. Correct proto case types

* fix: change TS client generation to always generate third party modules

This change is required to re-generate the root module; This module
imports and registers custom and third party modules so disabling the
3rd party ones would cause that the pre generated modules wouldn't be
imported and registered by the root template.

* fix: remove unnecessary env vars

* fix: Change generate  command from `typescript` to `ts-client`

* fix: expose individual clients

* fix: add global signingClient

* Update ignite/pkg/cosmosgen/templates/root/client.ts.tpl

Co-authored-by: Thomas Bruyelle <thomas.bruyelle@gmail.com>

* docs: Ts client information

* fix: Correct docs markup

* fix: add ts syntax to docs code

* fix(docs): break up one-liners

* fix(docs): Add plugin usage

* docs and fixes

Co-authored-by: Alex Megalokonomos <alex@clockwork.gr>
Co-authored-by: Barrie Byron <barriebyron@gmail.com>
Co-authored-by: barriebyron <>
Co-authored-by: jeronimoalbi <jeronimo.albi@tendermint.com>
Co-authored-by: Thomas Bruyelle <thomas.bruyelle@gmail.com>
Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
…gnite#2142) (ignite#2143)

* feat(frontend): ts-client + pinia (ignite#2142)

* Update index.ts.tpl

* Update index.ts.tpl

* Update package.json.tpl

* Update index.ts.tpl

* Update package.json.tpl

* Update generate_javascript.go

* Create index.ts.tpl

* Create module.ts.tpl

* Create pinia.ts.tpl

* Create idnex.ts.tpl

* Rename idnex.ts.tpl to index.ts.tpl

* Create package.json.tpl

* Delete starport/pkg/cosmosgen/templates/vuex directory

* Delete starport/pkg/cosmosgen/templates/js directory

* Update cosmosgen.go

* Update generate_javascript.go

* Update template.go

* Update generate.go

* Update generate.go

* Update scaffolder.go

* Rename generate_vuex.go to generate_sdk.go

* Update config.go

* Update generate_javascript.go

* Update build.go

* Update generate_sdk.go

* Update generate_javascript.go

* Update generate_javascript.go

* 🏗

* adjusted pinia path

* 🏗

* n

* n

* Update starport/pkg/cosmosgen/templates/root/index.ts.tpl

Co-authored-by: Alex Megalokonomos <alex@clockwork.gr>

* n

* plugins

* refactored

* adjusted ts templates

* mod tidy

* better syntax

* bump @ignt/plugins

* tpl header

* string formatting

* adjusted test out dir

* adjusted integration test

* adjusted integration test

* minors

* Update docs/cli/index.md

Co-authored-by: Barrie Byron <barriebyron@gmail.com>

* Update ignite/cmd/generate_typescript_client.go

Co-authored-by: Barrie Byron <barriebyron@gmail.com>

* Update docs/kb/frontend.md

Co-authored-by: Barrie Byron <barriebyron@gmail.com>

* Update build.go

* expand on the web app template

* grammar fixes for the articles

* mono repo URL is changed

* add missing article for grammar fix

* grammar fix and add more scope to the web app template

* feat: Client config typing (ignite#2569)

* feat: Client config typing

* fix: remove console

* wip

* wip

* fix: remove accidentally committed files

* fixed: type issues/code duplication

* fix: use new @starport/vuex getter

* fix: correct export

* fix: changed generate typescript and vuex to match latest changes

* fix: change output dir for typescript root templates

* fix: remove "module" suffix from typescript module paths

It seems that the module folder was replaced by the `module.ts` file
during module generation.

* fix: replace deprecated `strings.Title()` by a caser

* fix: remove unused `monitoringProviderQuery` field from `Network`

* ci: fix linting issues

* chore: fix issue with vuex generation

* chore: fix vuex module path issue

* test: fix broken `cosmosgen` test

* fix: correct client root path

* test: fix broken integration test

* refactor: remove namespace prefix from module paths

* ci: fix invalid `Join` call

* docs: fixed TS client directory name

* test: fix broken unit test

* refactor: add link to ts-client to vue app dependencies during scaffold

* chore: add indentation to the packages.json file

* fix: change Vuex generation to use a relative ts-client link path

* chore: change vue app dependency update to return custom errors

* fix: Template version and fee fixes

* fix: Bump template. Correct proto case types

* fix: change TS client generation to always generate third party modules

This change is required to re-generate the root module; This module
imports and registers custom and third party modules so disabling the
3rd party ones would cause that the pre generated modules wouldn't be
imported and registered by the root template.

* fix: remove unnecessary env vars

* fix: Change generate  command from `typescript` to `ts-client`

* fix: expose individual clients

* fix: add global signingClient

* Update ignite/pkg/cosmosgen/templates/root/client.ts.tpl

Co-authored-by: Thomas Bruyelle <thomas.bruyelle@gmail.com>

* docs: Ts client information

* fix: Correct docs markup

* fix: add ts syntax to docs code

* fix(docs): break up one-liners

* fix(docs): Add plugin usage

* docs and fixes

Co-authored-by: Alex Megalokonomos <alex@clockwork.gr>
Co-authored-by: Barrie Byron <barriebyron@gmail.com>
Co-authored-by: barriebyron <>
Co-authored-by: jeronimoalbi <jeronimo.albi@tendermint.com>
Co-authored-by: Thomas Bruyelle <thomas.bruyelle@gmail.com>
Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants