8000 fix: type scaffolding fails if there is no vue dir by lumtis · Pull Request #719 · ignite/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: type scaffolding fails if there is no vue dir #719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions starport/templates/typed/new_launchpad.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package typed

import (
"fmt"
"os"
"strings"

"github.com/gobuffalo/genny"
Expand Down Expand Up @@ -190,6 +191,10 @@ func (t *typedLaunchpad) frontendSrcStoreAppModify(opts *Options) genny.RunFn {
return func(r *genny.Runner) error {
path := "vue/src/views/Index.vue"
f, err := r.Disk.Find(path)
if os.IsNotExist(err) {
// Skip modification if the app doesn't contain front-end
return nil
}
if err != nil {
return err
}
Expand Down
5 changes: 5 additions & 0 deletions starport/templates/typed/new_stargate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package typed

import (
"fmt"
"os"
"strings"

"github.com/gertd/go-pluralize"
Expand Down Expand Up @@ -357,6 +358,10 @@ func (t *typedStargate) frontendSrcStoreAppModify(opts *Options) genny.RunFn {
return func(r *genny.Runner) error {
path := "vue/src/views/Index.vue"
f, err := r.Disk.Find(path)
if os.IsNotExist(err) {
// Skip modification if the app doesn't contain front-end
return nil
}
if err != nil {
return err
}
Expand Down
0