-
Notifications
You must be signed in to change notification settings - Fork 48
Ignite CLI integration notes ‐ for Ignite CLI devs
This repo holds the vue and react boilerplate templates and base component libraries for Ignite CLI generated chain.
After making changes to the repo, Actions allows you to publish new patch/minor/major releases.
The action will publish the component libraries to npm and update the templates to import the new versions.
It will also tag a new version in the repo.
The repo tag combined with the go.mod file allows Ignite CLI to depend on a specific version of these boilerplates.
In use, when you scaffold a react or vue app with Ignite CLI it simply copies the appropriate *-template folder to your local fs.
You must then run ignite generate composables (for Vue) or ignite generate hooks (for React) which will generate the appropriate hooks for your blockchain inside the vue or react folders. It will also generate the ts-client for your blockchain and link it as a dependency to the template.
Thus, if any breaking changes are made to the ts-client/hooks/composables generation through their templates: https://github.com/ignite/cli/tree/main/ignite/pkg/cosmosgen/templates
The templates must be tested and updated accordingly, a new version published and the PR in Ignite CLI updating the generation should include a bump in Ignite CLI's go.mod fore ignite/web to the new version.