Skip to content

Commit 9c8ccb0

Browse files
authored
refactor!: remove vuex generation (#4111)
remove vuex generation since is deprecated for a long time
1 parent 0018c38 commit 9c8ccb0

File tree

16 files changed

+10
-713
lines changed

16 files changed

+10
-713
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- [#3718](https://github.com/ignite/cli/pull/3718) Add `gen-mig-diffs` tool app to compare scaffold output of two versions of ignite
1515
- [#4077](https://github.com/ignite/cli/pull/4077) Merge the swagger files manually instead use nodetime `swagger-combine`
1616
- [#4100](https://github.com/ignite/cli/pull/4100) Set the `proto-dir` flag only for the `scaffold chain` command and use the proto path from the config
17+
- [#4111](https://github.com/ignite/cli/pull/4111) Remove vuex generation
1718

1819
### Changes
1920

ignite/cmd/generate.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ meant to be edited by hand.
3434

3535
c.AddCommand(NewGenerateGo())
3636
c.AddCommand(NewGenerateTSClient())
37-
c.AddCommand(NewGenerateVuex())
3837
c.AddCommand(NewGenerateComposables())
3938
c.AddCommand(NewGenerateHooks())
4039
c.AddCommand(NewGenerateOpenAPI())

ignite/cmd/generate_vuex.go

Lines changed: 0 additions & 56 deletions
This file was deleted.

ignite/config/chain/config.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ var (
3030
// The path is relative to the app's directory.
3131
DefaultReactPath = "react"
3232

33-
// DefaultVuexPath defines the default relative path to use when generating Vuex stores for a Vue app.
34-
// The path is relative to the app's directory.
35-
DefaultVuexPath = "vue/src/store"
36-
3733
// DefaultComposablesPath defines the default relative path to use when generating useQuery composables for a Vue app.
3834
// The path is relative to the app's directory.
3935
DefaultComposablesPath = "vue/src/composables"
@@ -91,17 +87,6 @@ func TSClientPath(conf Config) string {
9187
return DefaultTSClientPath
9288
}
9389

94-
// VuexPath returns the relative path to the Vuex stores directory.
95-
// Path is relative to the app's directory.
96-
func VuexPath(conf *Config) string {
97-
//nolint:staticcheck,nolintlint //ignore SA1019 until vuex config option is removed
98-
if path := strings.TrimSpace(conf.Client.Vuex.Path); path != "" {
99-
return filepath.Clean(path)
100-
}
101-
102-
return DefaultVuexPath
103-
}
104-
10590
// ComposablesPath returns the relative path to the Vue useQuery composables directory.
10691
// Path is relative to the app's directory.
10792
func ComposablesPath(conf *Config) string {

ignite/pkg/cosmosgen/cosmosgen.go

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ type generateOptions struct {
2727
jsOut func(module.Module) string
2828
tsClientRootPath string
2929

30-
vuexOut func(module.Module) string
31-
vuexRootPath string
32-
3330
composablesOut func(module.Module) string
3431
composablesRootPath string
3532

@@ -55,13 +52,6 @@ func WithTSClientGeneration(out ModulePathFunc, tsClientRootPath string, useCach
5552
}
5653
}
5754

58-
func WithVuexGeneration(out ModulePathFunc, vuexRootPath string) Option {
59-
return func(o *generateOptions) {
60-
o.vuexOut = out
61-
o.vuexRootPath = vuexRootPath
62-
}
63-
}
64-
6555
func WithComposablesGeneration(out ModulePathFunc, composablesRootPath string) Option {
6656
return func(o *generateOptions) {
6757
o.composablesOut = out
@@ -204,27 +194,6 @@ func Generate(ctx context.Context, cacheStorage cache.Storage, appPath, protoDir
204194
}
205195
}
206196

207-
if g.opts.vuexOut != nil {
208-
if err := g.generateVuex(); err != nil {
209-
return err
210-
}
211-
212-
// Update Vuex store dependencies when Vuex stores are generated.
213-
// This update is required to link the "ts-client" folder so the
214-
// package is available during development before publishing it.
215-
if err := g.updateVuexDependencies(); err != nil {
216-
return err
217-
}
218-
219-
// Update Vue app dependencies when Vuex stores are generated.
220-
// This update is required to link the "ts-client" folder so the
221-
// package is available during development before publishing it.
222-
if err := g.updateVueDependencies(); err != nil {
223-
return err
224-
}
225-
226-
}
227-
228197
if g.opts.composablesRootPath != "" {
229198
if err := g.generateComposables("vue"); err != nil {
230199
return err

ignite/pkg/cosmosgen/generate_vuex.go

Lines changed: 0 additions & 219 deletions
This file was deleted.

0 commit comments

Comments
 (0)